Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HBSH ¶
type HBSH struct {
// contains filtered or unexported fields
}
HBSH is a cipher using the HBSH encryption mode.
func New ¶
func New(stream StreamCipher, block cipher.Block, hash TweakableHash) *HBSH
New returns an HBSH cipher using the specified primitives.
type StreamCipher ¶
type StreamCipher interface {
XORKeyStream(msg, nonce []byte)
}
A StreamCipher xors msg with a keystream, modified by a nonce.
type TweakableHash ¶
TweakableHash is a tweakable cryptographic hash function. It appends the hash of src to dst and returns it.
Click to show internal directories.
Click to hide internal directories.