Versions in this module Expand all Collapse all v0 v0.0.1 Apr 8, 2021 Changes in this version + func DecryptCBC(block cipher.Block, msg *[]byte) (*[]byte, error) + func DecryptGCM(block cipher.Block, nonce []byte, ciphertext *[]byte) (*[]byte, error) + func EncryptCBC(block cipher.Block, msg *[]byte) (*[]byte, error) + func EncryptGCM(block cipher.Block, cipherTextBuf *bytes.Buffer, msg *[]byte) ([]byte, error) + func Padding(srcPtr *[]byte, blocksize int) ([]byte, []byte) + func Unpadding(dst []byte) []byte + type BlockMode interface + BlockSize func() int + CryptBlocks func(dst, src []byte) error + func NewCBCDecrypter(b cipher.Block, iv []byte) (BlockMode, error) + func NewCBCEncrypter(b cipher.Block, iv []byte) (BlockMode, error) + type Stream interface + XORKeyStream func(dst, src []byte) error