Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Stephan Mueller <smueller@chronox.de>
To: noloader@gmail.com
Cc: Tudor Ambarus <tudor-dan.ambarus@nxp.com>,
	herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org,
	tadeusz.struk@intel.com, cristian.stoica@nxp.com,
	horia.geanta@nxp.com
Subject: Re: [PATCH v3 2/3] crypto: rsa_helper - add raw integer parser actions
Date: Fri, 08 Apr 2016 18:55:09 +0200	[thread overview]
Message-ID: <1665554.PWMBgngPXm@tauon.atsec.com> (raw)
In-Reply-To: <CAH8yC8mECu967LbYRWzuhGms8MigfYONS-upFz7nHKhhv=suRQ@mail.gmail.com>

Am Freitag, 8. April 2016, 12:54:10 schrieb Jeffrey Walton:

Hi Jeffrey,

> > +int rsa_check_key_length(unsigned int len)
> > +{
> > +       switch (len) {
> > +       case 512:
> > +       case 1024:
> > +       case 1536:
> > +       case 2048:
> > +       case 3072:
> > +       case 4096:
> > +               return 0;
> > +       }
> > +
> > +       return -EINVAL;
> > +}
> 
> That's an unusual restriction.
> 
> > +       key->n_sz = vlen;
> > +       /* In FIPS mode only allow key size 2K & 3K */
> > +       if (fips_enabled && (key->n_sz != 256 && key->n_sz != 384)) {
> > +               dev_err(ctx->dev, "RSA: key size not allowed in FIPS
> > mode\n"); +               goto err;
> > +       }
> 
> That's an unusual restriction, too. As far as I know, FIPS does not
> place that restriction.

It does, see SP80-131A and the requirements on CAVS.

Very lately they added 4k too, hence my question.
> 
> Jeff


Ciao
Stephan

  reply	other threads:[~2016-04-08 16:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-06 13:37 [PATCH v3 0/3] crypto: rsa - generalize ASN.1 sequences Tudor Ambarus
2016-04-06 13:37 ` [PATCH v3 1/3] " Tudor Ambarus
2016-04-15 13:52   ` Herbert Xu
2016-04-15 14:32     ` Tudor-Dan Ambarus
2016-04-15 14:38       ` Herbert Xu
2016-04-15 15:03         ` Tudor-Dan Ambarus
2016-04-25  5:54           ` Tudor-Dan Ambarus
2016-04-25  5:58             ` Herbert Xu
2016-04-06 13:37 ` [PATCH v3 2/3] crypto: rsa_helper - add raw integer parser actions Tudor Ambarus
2016-04-08 16:32   ` Stephan Mueller
2016-04-14 15:25     ` Tudor-Dan Ambarus
2016-04-14 15:38       ` Stephan Mueller
2016-04-15  5:58         ` Herbert Xu
2016-04-08 16:54   ` Jeffrey Walton
2016-04-08 16:55     ` Stephan Mueller [this message]
2016-04-08 17:09       ` Jeffrey Walton
2016-04-08 17:13         ` Stephan Mueller
2016-04-06 13:37 ` [PATCH v3 3/3] crypto: rsa_helper - export symbols for asn1 structures Tudor Ambarus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1665554.PWMBgngPXm@tauon.atsec.com \
    --to=smueller@chronox.de \
    --cc=cristian.stoica@nxp.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=horia.geanta@nxp.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=noloader@gmail.com \
    --cc=tadeusz.struk@intel.com \
    --cc=tudor-dan.ambarus@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox