Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: aes encryption in GCM mode is incorrect #469

Closed
shlomiey opened this issue Jan 9, 2019 · 0 comments · Fixed by #569
Closed

Bug Report: aes encryption in GCM mode is incorrect #469

shlomiey opened this issue Jan 9, 2019 · 0 comments · Fixed by #569
Labels

Comments

@shlomiey
Copy link

shlomiey commented Jan 9, 2019

Summary

The output & tag are not corresponding to NIST test vectors, and could be wrong.
The problem could be for not paying attention for IV values.
While playing with the Encrypt I changed the IV & baked but the output didn't changed at all, maybe has a default value of zero.

I checked it several times, but maybe the fault is on me.
Hope you would checked this issue 👍

As for writing the issue Nist web is unavailable,
but the example is taken form the file gcmEncryptExtIV128.rsp , the first one for (PTlen = 128)

Example

The Nist Vector:

Key: a10c0047bc237c96caf74c9676d6ff1f
IV: c81820692baad8837f0112e7
Plaintext: b65c3e50f9852b745f66b13e8d4f66cf
Ciphertext: f2f03455ec73027b27042be0e66e4b8e
Tag: 368be4de43c27e8466cf2da86e3215

Result from Baking:

Ciphertext: bca119c28d43f8bbe1fcb230cf743c86
Tag: bd4ed24ea37f824db8201214a4272161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants