Versions in this module Expand all Collapse all v1 v1.3.8 Feb 16, 2024 Changes in this version + const KeySize + const KeySize80pq + const NonceSize + const TagSize + var ErrDecryption = errors.New("ascon: invalid ciphertext") + var ErrKeySize = errors.New("ascon: bad key size") + var ErrMode = errors.New("ascon: invalid cipher mode") + var ErrNonceSize = errors.New("ascon: bad nonce size") + type Cipher struct + func New(key []byte, m Mode) (*Cipher, error) + func (a *Cipher) NonceSize() int + func (a *Cipher) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error) + func (a *Cipher) Overhead() int + func (a *Cipher) Seal(dst, nonce, plaintext, additionalData []byte) []byte + type Mode int + const Ascon128 + const Ascon128a + const Ascon80pq + func (m Mode) KeySize() int + func (m Mode) String() string