Skip to content

crypto: test that CBC and CTR update the IV

Eric Biggers linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6crypto: testmgr - remove extra bytes from 3DES-CTR IVscrypto/testmgr.h+2 -40 replies
2/6crypto: testmgr - support checking skcipher output IVcrypto/testmgr.c crypto/testmgr.h+11 -70 replies
3/6crypto: testmgr - add iv_out to all CBC test vectorscrypto/testmgr.h+48 -00 replies
4/6crypto: testmgr - add iv_out to all CTR test vectorscrypto/testmgr.h+45 -00 replies
5/6crypto: arm64/aes-blk - update IV after partial final CTR blockarch/arm64/crypto/aes-modes.S+1 -24 replies
6/6crypto: arm/aes-ce - update IV after partial final CTR blockarch/arm/crypto/aes-ce-core.S+13 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] crypto: test that CBC and CTR update the IV

Hello,

This series makes the crypto self-tests test that all CBC and CTR implementations update req->iv to contain the IV for the next block. This apparently has been a requirement for a long time, but it wasn't actually tested for.

With this series applied, all self-tests pass on x86_64, arm32, and arm64. But I'm not able to test hardware drivers, so possibly some of them will fail and still need to be fixed.

Eric Biggers (6):
crypto: testmgr - remove extra bytes from 3DES-CTR IVs
crypto: testmgr - support checking skcipher output IV
crypto: testmgr - add iv_out to all CBC test vectors
crypto: testmgr - add iv_out to all CTR test vectors
crypto: arm64/aes-blk - update IV after partial final CTR block
crypto: arm/aes-ce - update IV after partial final CTR block

 arch/arm/crypto/aes-ce-core.S |  26 ++++----
 arch/arm64/crypto/aes-modes.S |   3 +-
 crypto/testmgr.c              |   6 +-
 crypto/testmgr.h              | 111 +++++++++++++++++++++++++++++++---
 4 files changed, 120 insertions(+), 26 deletions(-)
Signature · 1 line
2.20.1