All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcus Meissner <meissner@suse.de>
To: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Cc: "linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>
Subject: Re: rfc4543 testvectors in testmgr.h kernel
Date: Wed, 11 Feb 2015 10:19:42 +0100	[thread overview]
Message-ID: <20150211091942.GM32656@suse.de> (raw)
In-Reply-To: <54DA424A.7080909@iki.fi>

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

      reply	other threads:[~2015-02-11  9:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

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=20150211091942.GM32656@suse.de \
    --to=meissner@suse.de \
    --cc=jussi.kivilinna@iki.fi \
    --cc=linux-crypto@vger.kernel.org \
    /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 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.