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

[-- 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 --]

       reply	other threads:[~2015-02-10 17:39 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 ` Jussi Kivilinna [this message]
2015-02-11  9:19   ` rfc4543 testvectors in testmgr.h kernel Marcus Meissner

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