-
Notifications
You must be signed in to change notification settings - Fork 18k
crypto/cipher: aesGcm: customize the size of the Tag #19594
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
Comments
To @agl for decision. |
This is a reasonable request. The different tag size should be exposed as a different AEAD, i.e. something like |
Im going to look at the contributor guidelines to propose a pull request on monday if it is ok. |
CL https://golang.org/cl/38691 mentions this issue. |
The CL mailed above doesn't compile, so bumping this to Go 1.10. |
I had a shot at this in a new CL (I was not sure if I could/should change the other one). |
CL https://golang.org/cl/48510 mentions this issue. |
What did you do?
https://play.golang.org/p/3lHakDk4WV
i'm working on AES GCM encrypted data from the DLMS/Cosem protocol.
This protocol use AES GCM 128 bits but only keep the 12 bytes of the tag
I you look in the code of crypto/cipher/gcm.go:gcm.Open, you'll see that the 12 leftmost bytes are identical, i just need a way to limit the comparison to 12 bytes.
What did you expect to see?
I expect to be able to configure the size of the tag.
System details
The text was updated successfully, but these errors were encountered: