Crate forro

Source
Expand description

The Forró cipher.

Forró is an add-rotate-xor (ARX) cipher recently introduced by Murilo et al. at Asiacrypt 2022. It is similar to the ChaCha cipher, but offers better diffusion and requires fewer rounds. In general, Forró saves about two rounds for every seven ChaCha rounds. In other words, Forró14 is equivalent to ChaCha20, Forró10 is equivalent to ChaCha12, and so on.

This crate implements the non-authenticated stream ciphers and the AEAD APIs.

§Warning

Forró is a very new cipher and has not had much independent cryptanalysis. This library is also undertested (e.g., it does not have negative tests.) You should not use this in production.

Structs§

Forro
The Forró stream cipher.
ForroPoly1305
The Forró AEAD.
XForro
The Forró stream cipher with an extended nonce.
XForroPoly1305
The XForró AEAD.

Enums§

Error
An error returned by this crate.

Constants§

BLOCK_SIZE
The size in octets of a Forró block.
KEY_SIZE
The size in octets of a key.

Type Aliases§

Forro10
The Forró stream cipher reduced to 10 rounds.
Forro14
The Forró stream cipher using 14 rounds.
Forro10Poly1305
The Forró AEAD using 10 rounds.
Forro14Poly1305
The Forró AEAD using 14 rounds.
XForro10
The Forró stream cipher reduced to 10 rounds with an extended nonce.
XForro14
The Forró stream cipher using 14 rounds with an extended nonce.
XForro10Poly1305
The XForró AEAD using 10 rounds.
XForro14Poly1305
The XForró AEAD using 14 rounds.