Skip to contentSkip to conversation

Crypto Testmgr test vector questions

DISCUSSION [email protected] 2 participants 2 messages Mar 14, 2023 – Mar 15, 2023 Crypto API

lore
Share & tools
lore
#0 lore raw

Hello

What is the goal of test vector 4 on alg:aead authenc-hmac-shaX-cbc-aes tests? I am trying to debug sam9x60ek board and only test vector 4 for authenc fails. I am curious what the goal of test vector 4 test is as this could help me in my debugging efforts.

BR,
Ryan

maintainer
#1 lore raw
Quoted 5 lines · On Tue, Mar 14, 2023 at 09:20:27PM +0000, [email protected] wrote:

What is the goal of test vector 4 on alg:aead authenc-hmac-shaX-cbc-aes tests? I am trying to debug sam9x60ek board and only test vector 4 for authenc fails. I am curious what the goal of test vector 4 test is as this could help me in my debugging efforts.

Are you talking about "RFC 3602 Case 4"? The only difference that I can see from "Case 3" (48 bytes) is that "Case 4" is longer (64 bytes).

You may want to insert some printks into testmgr.c to assess the nature of the failure by dumping the output from your algorithm.

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