4
$\begingroup$

Is there any conformance tests/sequences to validate AES-GCM & GHASH() implementation?

Details: I'm implementing AES-GSM, that's just for better understanding of that stuff, nothing more. Well I need to validate somehow my result. There is 'openssl' and some python libraries to do encryption but they allow to check only final encryption result and nothing else in between. I haven't seen anything at all to validate 'GHASH()' or 'multH()'.

Thanks.

$\endgroup$

3 Answers 3

2
$\begingroup$

See here and here for some test vectors (the second link is actually likely a better place to start). You may have to deal with padding though.

$\endgroup$
0
4
$\begingroup$

gcm-spec, this document has "AES Test Vectors" section in the end. There are a numerous test cases with all intermediate results for encryption and ghash. I found them a rather useful.

$\endgroup$
0
$\begingroup$

You could try using Wycheproof test vectors as well

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.