wycheproof icon indicating copy to clipboard operation
wycheproof copied to clipboard

Add flag to AES CCM testvectors for invalid tag size

Open alex opened this issue 5 years ago • 2 comments

Right now the way to programatically detect these tests is to look at the comment key. It'd be great if there were a flag for this.

alex avatar Aug 01 '18 14:08 alex

I'll add flags. Since the size of the flags and the size of nonce is encoded using 3 bits each in the block B0 encryption with invalid values is essentially undefined.

bleichen avatar Aug 02 '18 12:08 bleichen

For what it's worth, the reason this is desired by us is that we use a different error type for bad nonce length than we do for other failures, since bad nonce length is generally a programming bug, as opposed to bad data.

alex avatar Aug 02 '18 12:08 alex