Help us shape the future of Go! Take the 2026 Go Developer Survey

aescbcaead

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAESCBC128SHA256

func NewAESCBC128SHA256(key []byte) (cipher.AEAD, error)

NewAESCBC128SHA256 returns an AEAD_AES_128_CBC_HMAC_SHA_256 instance given a 32-byte key or an error if the key is the wrong size. AEAD_AES_128_CBC_HMAC_SHA_256 combines AES-128 in CBC mode with HMAC-SHA-256-128.

func NewAESCBC192SHA384

func NewAESCBC192SHA384(key []byte) (cipher.AEAD, error)

NewAESCBC192SHA384 returns an AEAD_AES_192_CBC_HMAC_SHA_384 instance given a 48-byte key or an error if the key is the wrong size. AEAD_AES_192_CBC_HMAC_SHA_384 combines AES-192 in CBC mode with HMAC-SHA-384-192.

func NewAESCBC256SHA384

func NewAESCBC256SHA384(key []byte) (cipher.AEAD, error)

NewAESCBC256SHA384 returns an AEAD_AES_256_CBC_HMAC_SHA_384 instance given a 56-byte key or an error if the key is the wrong size. AEAD_AES_256_CBC_HMAC_SHA_384 combines AES-256 in CBC mode with HMAC-SHA-384-192.

func NewAESCBC256SHA512

func NewAESCBC256SHA512(key []byte) (cipher.AEAD, error)

NewAESCBC256SHA512 returns an AEAD_AES_256_CBC_HMAC_SHA_512 instance given a 64-byte key or an error if the key is the wrong size. AEAD_AES_256_CBC_HMAC_SHA_512 combines AES-256 in CBC mode with HMAC-SHA-512-256.

func NewAESCBCAEAD

func NewAESCBCAEAD(p aesCBCAEADParams) (cipher.AEAD, error)

NewAESCBCAEAD creates a new AEAD cipher based on AES-CBC with HMAC-SHA.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL