Skip to content

crypto: HMAC - disallow keys < 112 bits in FIPS mode

Stephan Müller linux-crypto 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: HMAC - add fips_skip supportcrypto/testmgr.c crypto/testmgr.h+5 -00 replies
2/2crypto: HMAC - disallow keys < 112 bits in FIPS modecrypto/hmac.c crypto/testmgr.h+13 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] crypto: HMAC - disallow keys < 112 bits in FIPS mode

Hi,

this is patch set version 2 for adding the HMAC limitation to disallow keys < 112 bits in FIPS mode.

Version 2 changes:

As requested, instead of ifdef'ing test vectors out that violate the constraint added with this patch set, they are compiled but disabled in FIPS mode based on the .fips_skip flag.

The first patch adds the generic support for the fips_skip flag to hashes / HMAC test vectors similarly to the support found for symmetric algorithms.

The second patch uses the fips_skip flag to mark offending test vectors.

Stephan Mueller (2):
crypto: HMAC - add fips_skip support
crypto: HMAC - disallow keys < 112 bits in FIPS mode

 crypto/hmac.c    |  4 ++++
 crypto/testmgr.c |  3 +++
 crypto/testmgr.h | 11 +++++++++++
 3 files changed, 18 insertions(+)
Signature · 1 line
2.33.1