const nonceBytes …
func NewCBCHMAC(key []byte, newBlockCipher func([]byte) (cipher.Block, error)) (cipher.AEAD, error) { … }
type cbcAEAD …
func (ctx *cbcAEAD) NonceSize() int { … }
func (ctx *cbcAEAD) Overhead() int { … }
func (ctx *cbcAEAD) Seal(dst, nonce, plaintext, data []byte) []byte { … }
func (ctx *cbcAEAD) Open(dst, nonce, ciphertext, data []byte) ([]byte, error) { … }
func (ctx *cbcAEAD) computeAuthTag(aad, nonce, ciphertext []byte) []byte { … }
func resize(in []byte, n uint64) (head, tail []byte) { … }
func padBuffer(buffer []byte, blockSize int) []byte { … }
func unpadBuffer(buffer []byte, blockSize int) ([]byte, error) { … }