Linux cryptographic layer development
 help / color / mirror / Atom feed
* testmgr: templates not tested
@ 2015-09-03  2:20 Stephan Mueller
  2015-09-03  7:45 ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Stephan Mueller @ 2015-09-03  2:20 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto

Hi Herbert,

while playing with the testmgr in FIPS mode, I see that ciphers with a 
template are not tested even though test vectors exist.

For example, when allocating cbc(aes-generic) I see records of aes-generic 
(aes) being tested, but I do not see a record of cbc(aes).

Is it intended that such combos of a template/cipher are not tested?

-- 
Ciao
Stephan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: testmgr: templates not tested
  2015-09-03  2:20 testmgr: templates not tested Stephan Mueller
@ 2015-09-03  7:45 ` Herbert Xu
  2015-09-03 10:21   ` Stephan Mueller
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Xu @ 2015-09-03  7:45 UTC (permalink / raw)
  To: Stephan Mueller; +Cc: linux-crypto

On Thu, Sep 03, 2015 at 04:20:01AM +0200, Stephan Mueller wrote:
> 
> while playing with the testmgr in FIPS mode, I see that ciphers with a 
> template are not tested even though test vectors exist.
> 
> For example, when allocating cbc(aes-generic) I see records of aes-generic 
> (aes) being tested, but I do not see a record of cbc(aes).
> 
> Is it intended that such combos of a template/cipher are not tested?

It's the same bug as gcm.  cbc should use the underlying cra_name
in its cra_name.

I plan on fixing them as part of the skcipher conversion.

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: testmgr: templates not tested
  2015-09-03  7:45 ` Herbert Xu
@ 2015-09-03 10:21   ` Stephan Mueller
  2015-09-03 13:18     ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Stephan Mueller @ 2015-09-03 10:21 UTC (permalink / raw)
  To: Herbert Xu; +Cc: linux-crypto

Am Donnerstag, 3. September 2015, 15:45:39 schrieb Herbert Xu:

Hi Herbert,

> It's the same bug as gcm.  cbc should use the underlying cra_name
> in its cra_name.

I see. But then it seems to be a pervasive bug as xts suffers from the same 
issue too.

Would you please be so kind and give me a hint what exactly would need to be 
done with the cra_name? I continued working on the keywrap template and have 
it now complete. The only lingering issue is the testmgr where the test for 
keywrap is not invoked.

-- 
Ciao
Stephan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: testmgr: templates not tested
  2015-09-03 10:21   ` Stephan Mueller
@ 2015-09-03 13:18     ` Herbert Xu
  0 siblings, 0 replies; 4+ messages in thread
From: Herbert Xu @ 2015-09-03 13:18 UTC (permalink / raw)
  To: Stephan Mueller; +Cc: linux-crypto

On Thu, Sep 03, 2015 at 12:21:37PM +0200, Stephan Mueller wrote:
> 
> I see. But then it seems to be a pervasive bug as xts suffers from the same 
> issue too.

Right.  Every ablkcipher template has the same issue.  That's why
I wanted to take care of this in bulk with the skcipher conversion
rather than fixing them one-by-one.

> Would you please be so kind and give me a hint what exactly would need to be 
> done with the cra_name? I continued working on the keywrap template and have 
> it now complete. The only lingering issue is the testmgr where the test for 
> keywrap is not invoked.

You just need to grab the cra_name of the underlying algorithm
rather than using the input string.

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-03 13:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03  2:20 testmgr: templates not tested Stephan Mueller
2015-09-03  7:45 ` Herbert Xu
2015-09-03 10:21   ` Stephan Mueller
2015-09-03 13:18     ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox