Documentation
¶
Index ¶
Constants ¶
View Source
const BlockSize = 12
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AEAD ¶
type AEAD interface {
SetIV(iv []byte)
Update(aData []byte)
Encrypt(mData, cData []byte)
Decrypt(cData, mData []byte)
GetTag(tag []byte, tagBits int) []byte
}
func NewLetterSoup ¶
func NewLetterSoup(cipher BlockCipher) AEAD
func NewLetterSoupWithMAC ¶
func NewLetterSoupWithMAC(cipher BlockCipher, mac MAC) AEAD
type BlockCipher ¶
func NewCipher ¶
func NewCipher(key []byte) (BlockCipher, error)
NewCipher creates and returns a new BlockCipher.
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
type LetterSoup ¶
type LetterSoup struct {
A []byte
D []byte
R []byte
L []byte
// contains filtered or unexported fields
}
func (*LetterSoup) Decrypt ¶
func (this *LetterSoup) Decrypt(dst, src []byte)
func (*LetterSoup) Encrypt ¶
func (this *LetterSoup) Encrypt(dst, src []byte)
func (*LetterSoup) LFSRC ¶
func (this *LetterSoup) LFSRC(mData, cData []byte)
func (*LetterSoup) SetIV ¶
func (this *LetterSoup) SetIV(iv []byte)
func (*LetterSoup) Update ¶
func (this *LetterSoup) Update(aData []byte)
type MAC ¶
Click to show internal directories.
Click to hide internal directories.