Documentation ¶
Index ¶
Constants ¶
View Source
const ( NonceSize = 128 / 8 KeySize = 128 / 8 TagSize = 128 / 8 )
View Source
const BlockSize = 64 / 8 // bytes
View Source
const HashSize = 256 / 8 // bytes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AEAD ¶
type AEAD struct {
// contains filtered or unexported fields
}
AEAD provides an implementation of Ascon-128. It implements the crypto/cipher.AEAD interface.
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
func (*Hash) BlockSize ¶
func (d *Hash) BlockSize() int
The data rate of the sponge, in bytes. Writes which are a multiple of BlockSize will be more performant.
type MAC ¶
type MAC struct {
// contains filtered or unexported fields
}
type Xof ¶
type Xof struct {
// contains filtered or unexported fields
}
Xof is an implementation of the Ascon-Xof arbitrary-length hash algorithm. It implements the golang.org/x/crypto/sha3.ShakeHash interface (minus Clone).
Click to show internal directories.
Click to hide internal directories.