testmgr: templates not tested
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?
Signature · 2 lines
Ciao Stephan
Herbert Xu
maintainerQuoted 8 lines · Stephan Mueller
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,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Am Donnerstag, 3. September 2015, 15:45:39 schrieb Herbert Xu:
Hi Herbert,
Quoted 2 lines
It's the same bug as gcm. cbc should use the underlying
cra_namein itscra_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.
Signature · 2 lines
Ciao Stephan
Herbert Xu
maintainerQuoted 3 lines · Stephan Mueller
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.
Quoted 4 lines
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,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt