README ¶ go-aes-key-wrap Golang implementation of the AES Key Wrap algorithm as specified in RFC 3394 Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package keywrap provides an AES-KW keywrap implementation as defined in RFC-3394 Index ¶ func Unwrap(block cipher.Block, cipherText []byte) ([]byte, error) func Wrap(block cipher.Block, cek []byte) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Unwrap ¶ func Unwrap(block cipher.Block, cipherText []byte) ([]byte, error) Unwrap decrypts the provided cipher text with the given AES cipher (and corresponding key), using the AES Key Wrap algorithm (RFC-3394). The decrypted cipher text is verified using the default IV and will return an error if validation fails. func Wrap ¶ func Wrap(block cipher.Block, cek []byte) ([]byte, error) Wrap encrypts the provided key data (cek) with the given AES cipher (and corresponding key), using the AES Key Wrap algorithm (RFC-3394) Types ¶ This section is empty. Source Files ¶ View all Source files keywrap.go Click to show internal directories. Click to hide internal directories.