Documentation ¶
Index ¶
Constants ¶
View Source
const (
NonceSize = 16
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AesCbcHmac ¶
type AesCbcHmac struct {
// contains filtered or unexported fields
}
func New ¶
func New(key []byte, f BlockCipherFunc) (*AesCbcHmac, error)
func (AesCbcHmac) ComputeAuthTag ¶
func (c AesCbcHmac) ComputeAuthTag(aad, nonce, ciphertext []byte) []byte
func (AesCbcHmac) NonceSize ¶
func (c AesCbcHmac) NonceSize() int
NonceSize fulfills the crypto.AEAD interface
func (AesCbcHmac) Open ¶
func (c AesCbcHmac) Open(dst, nonce, ciphertext, data []byte) ([]byte, error)
Open fulfills the crypto.AEAD interface
func (AesCbcHmac) Overhead ¶
func (c AesCbcHmac) Overhead() int
Overhead fulfills the crypto.AEAD interface
func (AesCbcHmac) Seal ¶
func (c AesCbcHmac) Seal(dst, nonce, plaintext, data []byte) []byte
Seal fulfills the crypto.AEAD interface
Click to show internal directories.
Click to hide internal directories.