var RandReader …
const defaultP2C …
const defaultP2SSize …
type symmetricKeyCipher …
type symmetricMac …
type aeadParts …
type aeadContentCipher …
type randomKeyGenerator …
type staticKeyGenerator …
func newAESGCM(keySize int) contentCipher { … }
func newAESCBC(keySize int) contentCipher { … }
func getContentCipher(alg ContentEncryption) contentCipher { … }
func getPbkdf2Params(alg KeyAlgorithm) (int, func() hash.Hash) { … }
func getRandomSalt(size int) ([]byte, error) { … }
func newSymmetricRecipient(keyAlg KeyAlgorithm, key []byte) (recipientKeyInfo, error) { … }
func newSymmetricSigner(sigAlg SignatureAlgorithm, key []byte) (recipientSigInfo, error) { … }
func (ctx randomKeyGenerator) genKey() ([]byte, rawHeader, error) { … }
func (ctx randomKeyGenerator) keySize() int { … }
func (ctx staticKeyGenerator) genKey() ([]byte, rawHeader, error) { … }
func (ctx staticKeyGenerator) keySize() int { … }
func (ctx aeadContentCipher) keySize() int { … }
func (ctx aeadContentCipher) encrypt(key, aad, pt []byte) (*aeadParts, error) { … }
func (ctx aeadContentCipher) decrypt(key, aad []byte, parts *aeadParts) ([]byte, error) { … }
func (ctx *symmetricKeyCipher) encryptKey(cek []byte, alg KeyAlgorithm) (recipientInfo, error) { … }
func (ctx *symmetricKeyCipher) decryptKey(headers rawHeader, recipient *recipientInfo, generator keyGenerator) ([]byte, error) { … }
func (ctx symmetricMac) signPayload(payload []byte, alg SignatureAlgorithm) (Signature, error) { … }
func (ctx symmetricMac) verifyPayload(payload []byte, mac []byte, alg SignatureAlgorithm) error { … }
func (ctx symmetricMac) hmac(payload []byte, alg SignatureAlgorithm) ([]byte, error) { … }