GCM with encryption only using Botan-3 #3540
-
Hi, The protocol that I'm working with includes the use of GCM with encryption only (without authentication). Any help will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
😱 That is incredibly cursed (not to mention completely insecure). What protocol is this?!? For encryption, all you need to do is truncate the tag off before sending the message. But that doesn't work for decryption since the implementation expects you to present a valid tag. Probably the simplest thing is actually copy the implementation of GCM and just remove all of the tag/GHASH handling. That will anyway save the overhead of computing the polynomial MAC since you aren't using it. |
Beta Was this translation helpful? Give feedback.
I did not look at your code 😅 but I created an example that seems to work in #3541 the idea being you would just include
CursedGCM_Encryption
andCursedGCM_Decryption
within your own application, and use them in the case that you need to use this (did I mention cursed!!) tagless GCM.As I mentioned for the encryption you could alternatively just use normal GCM and chop off the tag at the end.