Documentation ¶
Overview ¶
Package aead provides implementations of the AEAD primitive.
AEAD encryption assures the confidentiality and authenticity of the data. This primitive is CPA secure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AES128CBCHMACSHA256KeyTemplate ¶
func AES128CBCHMACSHA256KeyTemplate() *tinkpb.KeyTemplate
AES128CBCHMACSHA256KeyTemplate is a KeyTemplate that generates an AES-CBC-HMAC-AEAD key with the following parameters:
- AES key size: 16 bytes
- HMAC key size: 16 bytes
- HMAC tag size: 16 bytes
- HMAC hash function: SHA256
func AES192CBCHMACSHA384KeyTemplate ¶
func AES192CBCHMACSHA384KeyTemplate() *tinkpb.KeyTemplate
AES192CBCHMACSHA384KeyTemplate is a KeyTemplate that generates an AES-CBC-HMAC-AEAD key with the following parameters:
- AES key size: 24 bytes
- HMAC key size: 24 bytes
- HMAC tag size: 24 bytes
- HMAC hash function: SHA384
func AES256CBCHMACSHA384KeyTemplate ¶
func AES256CBCHMACSHA384KeyTemplate() *tinkpb.KeyTemplate
AES256CBCHMACSHA384KeyTemplate is a KeyTemplate that generates an AES-CBC-HMAC-AEAD key with the following parameters:
- AES key size: 32 bytes
- HMAC key size: 24 bytes
- HMAC tag size: 24 bytes
- HMAC hash function: SHA384
func AES256CBCHMACSHA512KeyTemplate ¶
func AES256CBCHMACSHA512KeyTemplate() *tinkpb.KeyTemplate
AES256CBCHMACSHA512KeyTemplate is a KeyTemplate that generates an AES-CBC-HMAC-AEAD key with the following parameters:
- AES key size: 32 bytes
- HMAC key size: 32 bytes
- HMAC tag size: 32 bytes
- HMAC hash function: SHA512
Types ¶
This section is empty.