Documentation
¶
Index ¶
- func HashData(data []byte) ([]byte, error)
- func RSASignSHA1Digest(sha1Digest []byte, keyFile, passphrase string) ([]byte, error)
- func RSAVerifySHA1Digest(sha1Digest, signature []byte, publicKey []byte) error
- func ReadAndHashIndexFile(indexFile string) ([]byte, []byte, error)
- func SignIndex(ctx context.Context, signingKey string, indexFile string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RSASignSHA1Digest ¶
RSASignSHA1Digest signs the provided SHA1 message digest. The key file must be in the PEM format and can either be encrypted or not.
func RSAVerifySHA1Digest ¶
RSAVerifySHA1Digest is exported for use in tests and verifies a signature over the provided SHA1 hash of a message. The key file must be in the PEM format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.