HomeFreeBSD

cryptodev: Match intent for enc_xform ciphers with blocksize != ivsize

Description

cryptodev: Match intent for enc_xform ciphers with blocksize != ivsize

No functional change for Skipjack, AES-ICM, Blowfish, CAST-128, Camellia,
DES3, Rijndael128, DES. All of these have identical IV and blocksizes
declared in the associated enc_xform.

Functional changes for:

  • AES-GCM: block len of 1, IV len of 12
  • AES-XTS: block len of 16, IV len of 8
  • NULL: block len of 4, IV len of 0

For these, it seems like the IV specified in the enc_xform is correct (and
the blocksize used before was wrong).

Additionally, the not-yet-OCFed cipher Chacha20 has a logical block length
of 1 byte, and a 16 byte IV + nonce.

Rationalize references to IV lengths to refer to the declared ivsize, rather
than declared blocksize.

Sponsored by: Dell EMC Isilon

Details

Provenance
cemAuthored on Mar 26 2018, 8:30 PM
Parents
rGe2041bfa7c15: CC Cubic: fix underflow for cubic_cwnd()
Branches
Unknown
Tags
Unknown

Event Timeline