Versions in this module Expand all Collapse all v0 v0.1.0 May 24, 2023 v0.0.1 May 17, 2023 Changes in this version + const AESGCMIVSize + const AESGCMTagSize + func GetHashFunc(hash string) func() hash.Hash + func NewAESGCMAEAD(key types.Key, randomService services.CPRNGService) (types.AEAD, error) + func NewRSASSAPKCS1SHA(hashFunc func() hash.Hash, hashID crypto.Hash, ...) (types.Unwrapping, error) + func NewXChaCha20Poly1305AEAD(key types.Key, randomService services.CPRNGService) (types.AEAD, error) + func ValidateAESKeySize(sizeInBytes uint32) error + type AESGCMAEAD struct + func (a *AESGCMAEAD) Decrypt(ciphertext, associatedData []byte) ([]byte, error) + func (a *AESGCMAEAD) Encrypt(plaintext, associatedData []byte) ([]byte, error) + type RSASSAPKCS1SHA struct + func (a *RSASSAPKCS1SHA) UnwrapKey(wdk []byte, epk []byte, fp []byte, password []byte) (dk []byte, err error) + type XChaCha20Poly1305AEAD struct + func (a *XChaCha20Poly1305AEAD) Decrypt(ciphertext, associatedData []byte) ([]byte, error) + func (a *XChaCha20Poly1305AEAD) Encrypt(plaintext, associatedData []byte) ([]byte, error)