Documentation ¶
Index ¶
- 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 NewOCFBDecrypter(block cipher.Block, prefix []byte, resync OCFBResyncOption) cipher.Stream
- func NewOCFBEncrypter(block cipher.Block, randData []byte, resync OCFBResyncOption) (cipher.Stream, []byte)
- 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
- type OCFBResyncOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 NewOCFBDecrypter ¶ added in v1.0.2025
NewOCFBDecrypter returns a cipher.Stream which decrypts data with OpenPGP's cipher feedback mode using the given cipher.Block. Prefix must be the first blockSize + 2 bytes of the ciphertext, where blockSize is the cipher.Block's block size. If an incorrect key is detected then nil is returned. On successful exit, blockSize+2 bytes of decrypted data are written into prefix. Resync determines if the "resynchronization step" from RFC 4880, 13.9 step 7 is performed. Different parts of OpenPGP vary on this point.
func NewOCFBEncrypter ¶ added in v1.0.2025
func NewOCFBEncrypter(block cipher.Block, randData []byte, resync OCFBResyncOption) (cipher.Stream, []byte)
NewOCFBEncrypter returns a cipher.Stream which encrypts data with OpenPGP's cipher feedback mode using the given cipher.Block, and an initial amount of ciphertext. randData must be random bytes and be the same length as the cipher.Block's block size. Resync determines if the "resynchronization step" from RFC 4880, 13.9 step 7 is performed. Different parts of OpenPGP vary on this point.
func NewPCBCDecrypter ¶ added in v1.0.2007
Types ¶
type OCFBResyncOption ¶ added in v1.0.2025
type OCFBResyncOption bool
An OCFBResyncOption determines if the "resynchronization step" of OCFB is performed.
const ( OCFBResync OCFBResyncOption = true OCFBNoResync OCFBResyncOption = false )
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package eax provides an implementation of the EAX (encrypt-authenticate-translate) mode of operation, as described in Bellare, Rogaway, and Wagner "THE EAX MODE OF OPERATION: A TWO-PASS AUTHENTICATED-ENCRYPTION SCHEME OPTIMIZED FOR SIMPLICITY AND EFFICIENCY." In FSE'04, volume 3017 of LNCS, 2004
|
Package eax provides an implementation of the EAX (encrypt-authenticate-translate) mode of operation, as described in Bellare, Rogaway, and Wagner "THE EAX MODE OF OPERATION: A TWO-PASS AUTHENTICATED-ENCRYPTION SCHEME OPTIMIZED FOR SIMPLICITY AND EFFICIENCY." In FSE'04, volume 3017 of LNCS, 2004 |
Package ocb provides an implementation of the OCB (offset codebook) mode of operation, as described in RFC-7253 of the IRTF and in Rogaway, Bellare, Black and Krovetz - OCB: A BLOCK-CIPHER MODE OF OPERATION FOR EFFICIENT AUTHENTICATED ENCRYPTION (2003).
|
Package ocb provides an implementation of the OCB (offset codebook) mode of operation, as described in RFC-7253 of the IRTF and in Rogaway, Bellare, Black and Krovetz - OCB: A BLOCK-CIPHER MODE OF OPERATION FOR EFFICIENT AUTHENTICATED ENCRYPTION (2003). |