* Re: rfc4543 testvectors in testmgr.h kernel [not found] <20150210162243.GH32656@suse.de> @ 2015-02-10 17:39 ` Jussi Kivilinna 2015-02-11 9:19 ` Marcus Meissner 0 siblings, 1 reply; 2+ messages in thread From: Jussi Kivilinna @ 2015-02-10 17:39 UTC (permalink / raw) To: linux-crypto@vger.kernel.org; +Cc: Marcus Meissner [-- Attachment #1: Type: text/plain, Size: 593 bytes --] On 10.02.2015 18:22, Marcus Meissner wrote: > Hi Jussi, > > We were trying to use rfc4543(gcm(aes)) in the kernel for FIPS mode, > but the testvectors seem to fail. You probably need to add '.fips_allowed = 1,' in testmgr.c for "rfc4543(gcm(aes))" to enable algorithm in fips mode. > > Did you verify that they work? Are these the ones from Page 18 of > https://tools.ietf.org/html/draft-mcgrew-gcm-test-01, as there the "plaintext" > and "aaad" seem to be switched? rfc4543() wrapper constructs the aad from '.assoc' and '.input'. -Jussi > > Ciao, Marcus > [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 648 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: rfc4543 testvectors in testmgr.h kernel 2015-02-10 17:39 ` rfc4543 testvectors in testmgr.h kernel Jussi Kivilinna @ 2015-02-11 9:19 ` Marcus Meissner 0 siblings, 0 replies; 2+ messages in thread From: Marcus Meissner @ 2015-02-11 9:19 UTC (permalink / raw) To: Jussi Kivilinna; +Cc: linux-crypto@vger.kernel.org On Tue, Feb 10, 2015 at 07:39:22PM +0200, Jussi Kivilinna wrote: > On 10.02.2015 18:22, Marcus Meissner wrote: > > Hi Jussi, > > > > We were trying to use rfc4543(gcm(aes)) in the kernel for FIPS mode, > > but the testvectors seem to fail. > > You probably need to add '.fips_allowed = 1,' in testmgr.c for "rfc4543(gcm(aes))" to enable algorithm in fips mode. > > > > > Did you verify that they work? Are these the ones from Page 18 of > > https://tools.ietf.org/html/draft-mcgrew-gcm-test-01, as there the "plaintext" > > and "aaad" seem to be switched? > > rfc4543() wrapper constructs the aad from '.assoc' and '.input'. We tried above and still got -2 errors. I think "ecb(cipher_null)" also needs to set the .fips_allowed flag, so that the rfc4543 setup can pull it in. CIao, Marcus ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-11 9:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20150210162243.GH32656@suse.de>
2015-02-10 17:39 ` rfc4543 testvectors in testmgr.h kernel Jussi Kivilinna
2015-02-11 9:19 ` Marcus Meissner
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.