Documentation ¶
Index ¶
- func HashData(data []byte, digestType crypto.Hash) ([]byte, error)
- func RSASignDigest(digest []byte, digestType crypto.Hash, keyFile, passphrase string) ([]byte, error)
- func RSAVerifyDigest(digest []byte, digestType crypto.Hash, signature []byte, publicKey []byte) error
- func SignIndex(ctx context.Context, signingKey string, indexFile string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RSASignDigest ¶ added in v0.18.0
func RSASignDigest(digest []byte, digestType crypto.Hash, keyFile, passphrase string) ([]byte, error)
RSASignDigest signs the provided message digest. The key file must be in the PEM format and can either be encrypted or not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.