Versions in this module Expand all Collapse all v0 v0.0.1 Aug 17, 2022 Changes in this version + type AEAD interface + NonceSize func() int + Open func(dst, nonce, ciphertext, additionalData []byte) ([]byte, error) + Overhead func() int + Seal func(dst, nonce, plaintext, additionalData []byte) []byte + func NewGCM(cipher Block) (AEAD, error) + func NewGCMWithNonceSize(cipher Block, size int) (AEAD, error) + type Block interface + BlockSize func() int + Decrypt func(dst, src []byte) + Encrypt func(dst, src []byte) + type BlockMode interface + BlockSize func() int + CryptBlocks func(dst, src []byte) + func NewCBCDecrypter(b Block, iv []byte) BlockMode + func NewCBCEncrypter(b Block, iv []byte) BlockMode + type Stream interface + XORKeyStream func(dst, src []byte) + func NewCFBDecrypter(block Block, iv []byte) Stream + func NewCFBEncrypter(block Block, iv []byte) Stream + func NewCTR(block Block, iv []byte) Stream + func NewOFB(b Block, iv []byte) Stream + type StreamReader struct + R io.Reader + S Stream + func (r StreamReader) Read(dst []byte) (n int, err error) + type StreamWriter struct + Err error + S Stream + W io.Writer + func (w StreamWriter) Close() error + func (w StreamWriter) Write(src []byte) (n int, err error)