linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] fips-allowed tests fail with non-FIPS ciphers
@ 2015-09-24 16:02 John Haxby
  2015-09-24 16:02 ` [PATCH 1/1] Disable fips-allowed for non-FIPS authenc ciphers John Haxby
  0 siblings, 1 reply; 4+ messages in thread
From: John Haxby @ 2015-09-24 16:02 UTC (permalink / raw)
  To: linux-crypto; +Cc: Herbert Xu, David S. Miller, John Haxby

Hello All,

"Make fips=1 work on 4.1", they said, wittily, "it'll be easy."

I suppose it wasn't that complicated, although I seem to be unearthing
other problems as I go along.  The first problem was dracut (and I owe
an upstream patch for that) and the second problem was tcrypt.

The tcrypt module was failing on authenc ciphers that wrap non-FIPS
ciphers and hashes.  These ones in fact:

    authenc(hmac(md5),ecb(cipher_null))
    authenc(hmac(sha1),cbc(des))
    authenc(hmac(sha1),ecb(cipher_null))
    authenc(hmac(sha224),cbc(des))
    authenc(hmac(sha256),cbc(des))
    authenc(hmac(sha384),cbc(des))
    authenc(hmac(sha512),cbc(des))

I'm fairly sure that wrapping des, cipher_null and md5 in authenc
shouldn't make them fips-allowed so the following patch simply removes
that.

Interestingly, some of these just failed outright and others just sat
there chewing CPU time.  I think that's just a curiousity though,
rather than a problem.

jch

John Haxby (1):
  Disable fips-allowed for non-FIPS authenc ciphers

 crypto/testmgr.c | 7 -------
 1 file changed, 7 deletions(-)

-- 
2.4.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-24 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-24 16:02 [PATCH 0/1] fips-allowed tests fail with non-FIPS ciphers John Haxby
2015-09-24 16:02 ` [PATCH 1/1] Disable fips-allowed for non-FIPS authenc ciphers John Haxby
2015-09-24 16:58   ` Stephan Mueller
2015-09-24 17:23     ` John Haxby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).