Documentation ¶
Index ¶
- func NewCCM(cipher goCipher.Block) (goCipher.AEAD, error)
- func NewCCMWithNonceAndTagSize(cipher goCipher.Block, nonceSize, tagSize int) (goCipher.AEAD, error)
- func NewCCMWithNonceSize(cipher goCipher.Block, size int) (goCipher.AEAD, error)
- func NewCCMWithTagSize(cipher goCipher.Block, tagSize int) (goCipher.AEAD, error)
- func NewCFB1(block cipher.Block, iv []byte, decrypt bool) cipher.Stream
- func NewCFB16(block cipher.Block, iv []byte, decrypt bool) cipher.Stream
- func NewCFB16Decrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB16Encrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB1Decrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB1Encrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB32(block cipher.Block, iv []byte, decrypt bool) cipher.Stream
- func NewCFB32Decrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB32Encrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB64(block cipher.Block, iv []byte, decrypt bool) cipher.Stream
- func NewCFB64Decrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB64Encrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB8(block cipher.Block, iv []byte, decrypt bool) cipher.Stream
- func NewCFB8Decrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewCFB8Encrypter(block cipher.Block, iv []byte) cipher.Stream
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func NewOFB8(b cipher.Block, iv []byte) cipher.Stream
- func NewPCBCDecrypter(b cipher.Block, iv []byte) cipher.BlockMode
- func NewPCBCEncrypter(b cipher.Block, iv []byte) cipher.BlockMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCCM ¶
NewCCM returns the given 128-bit, block cipher wrapped in CCM with the standard nonce length.
func NewCCMWithNonceAndTagSize ¶
func NewCCMWithNonceSize ¶
NewCCMWithNonceSize returns the given 128-bit, block cipher wrapped in CCM, which accepts nonces of the given length. The length must not be zero.
func NewCCMWithTagSize ¶
NewCCMWithTagSize returns the given 128-bit, block cipher wrapped in CCM, which generates tags with the given length.
Tag sizes between 8 and 16 bytes are allowed.
func NewCFB16Decrypter ¶ added in v1.0.2006
func NewCFB16Encrypter ¶ added in v1.0.2006
func NewCFB1Decrypter ¶ added in v1.0.2006
func NewCFB1Encrypter ¶ added in v1.0.2006
func NewCFB32Decrypter ¶ added in v1.0.2006
func NewCFB32Encrypter ¶ added in v1.0.2006
func NewCFB64Decrypter ¶ added in v1.0.2006
func NewCFB64Encrypter ¶ added in v1.0.2006
func NewCFB8Decrypter ¶
NewCFB8Decrypter returns a Stream which decrypts with cipher feedback mode (segment size = 8), using the given Block. The iv must be the same length as the Block's block size.
func NewCFB8Encrypter ¶
NewCFB8Encrypter returns a Stream which encrypts with cipher feedback mode (segment size = 8), using the given Block. The iv must be the same length as the Block's block size.
func NewECBDecrypter ¶ added in v1.0.1048
NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.
func NewECBEncrypter ¶ added in v1.0.1048
NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.
func NewPCBCDecrypter ¶ added in v1.0.2007
Types ¶
This section is empty.