[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <557AEB8A.2040708@intel.com>
Date: Fri, 12 Jun 2015 07:24:10 -0700
From: Tadeusz Struk <tadeusz.struk@...el.com>
To: Herbert Xu <herbert@...dor.apana.org.au>,
Stephan Mueller <smueller@...onox.de>
CC: linux-kernel@...r.kernel.org, keescook@...omium.org,
jwboyer@...hat.com, richard@....at, steved@...hat.com,
qat-linux@...el.com, dhowells@...hat.com,
linux-crypto@...r.kernel.org, james.l.morris@...cle.com,
jkosina@...e.cz, zohar@...ux.vnet.ibm.com, davem@...emloft.net,
vgoyal@...hat.com
Subject: Re: [PATCH RFC v4 2/4] crypto: add PKE API
On 06/11/2015 07:42 PM, Herbert Xu wrote:
>> The testmgr code can mark an entire cipher implementation as fips_allowed=1 as
>> > already done for RSA. However, unlike with the other ciphers, that flag must
>> > go in conjunction with the used key sizes.
>> >
>> > For FIPS mode, the following restrictions apply:
>> >
>> > - RSA: 2048/3072
>> >
>> > - DSA: L 2048 / N 224; L 2048 / N 256; L 3072 / N 256
>> >
>> > - ECDSA: only the NIST curves
>> >
>> > Any other key sizes for the given ciphers is not allowed in FIPS mode.
>> >
>> > Should that constraint be considered here?
> Yes. However it should be placed into a helper that everybody
> can call so that future hardware implementations can also make
> the same checks.
I will make the algorithm marked as fips allowed always and then fail in setkey if fips is enabled
and the given key doesn't meet the fips requirement.
Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists