Documentation ¶
Index ¶
- Variables
- func IV(size int) []byte
- type AEAD
- type Block
- type BlockMode
- type Cipher
- func CBC(b cipher.Block) (Cipher, error)
- func CBCWithIV(b cipher.Block, iv []byte) (Cipher, error)
- func CFB(b cipher.Block) (Cipher, error)
- func CFBWithIV(b cipher.Block, iv []byte) (Cipher, error)
- func CTR(b cipher.Block) (Cipher, error)
- func CTRWithIV(b cipher.Block, iv []byte) (Cipher, error)
- func GCM(b cipher.Block) (Cipher, error)
- func NewAEAD(aead cipher.AEAD) Cipher
- func NewBlock(block cipher.Block) Cipher
- func NewBlockMode(deBlockMode, enBlockMode cipher.BlockMode) Cipher
- func NewPKCS7Padding(i int) Cipher
- func NewPipeline(cipher ...Cipher) Cipher
- func NewStream(deStream, enStream cipher.Stream) Cipher
- func NewZeroPadding(i int) Cipher
- func OFB(b cipher.Block) (Cipher, error)
- func OFBWithIV(b cipher.Block, iv []byte) (Cipher, error)
- type PKCS7Padding
- type Pipeline
- type Stream
- type ZeroPadding
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFullBlock = errors.New("input not full block")
Functions ¶
Types ¶
type AEAD ¶
AEAD packaging to simplify operations
type Cipher ¶
type Cipher interface { Encrypt(plaintext []byte) (ciphertext []byte, err error) Decrypt(ciphertext []byte) (plaintext []byte, err error) }
func NewBlockMode ¶
func NewPKCS7Padding ¶
func NewPipeline ¶
func NewZeroPadding ¶
type PKCS7Padding ¶
type PKCS7Padding int
type ZeroPadding ¶
type ZeroPadding int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.