Documentation ¶
Overview ¶
Package keywrap is an implementation of the RFC 3394 AES key wrapping algorithm. This is used in OpenPGP with elliptic curve keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWrapPlaintext is returned if the plaintext is not a multiple // of 64 bits. ErrWrapPlaintext = errors.New("keywrap: plainText must be a multiple of 64 bits") // ErrUnwrapCiphertext is returned if the ciphertext is not a // multiple of 64 bits. ErrUnwrapCiphertext = errors.New("keywrap: cipherText must by a multiple of 64 bits") // ErrUnwrapFailed is returned if unwrapping a key fails. ErrUnwrapFailed = errors.New("keywrap: failed to unwrap key") // ErrInvalidKey is returned when the AES key is invalid. ErrInvalidKey = errors.New("keywrap: invalid AES key") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.