Documentation ¶
Index ¶
- func NewOCB(block cipher.Block) (cipher.AEAD, error)
- func NewOCBWithNonceAndTagSize(block cipher.Block, nonceSize int, tagSize int) (cipher.AEAD, error)
- func NewOCBWithNonceSize(block cipher.Block, nonceSize int) (cipher.AEAD, error)
- func NewOCBWithTagSize(block cipher.Block, tagSize int) (cipher.AEAD, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOCB ¶
NewOCB returns an OCB instance with the given block cipher and default tag and nonce sizes.
func NewOCBWithNonceAndTagSize ¶
func NewOCBWithNonceAndTagSize( block cipher.Block, nonceSize int, tagSize int, ) (cipher.AEAD, error)
NewOCBWithNonceAndTagSize returns an OCB instance with the given block cipher, nonce length, and tag length. Panics on zero nonceSize and exceedingly long tag size.
It is recommended to use at least 12 bytes as tag length.
func NewOCBWithNonceSize ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.