Closed ct-clearhaus closed 6 years ago
If it's not less code (in total) then I vote against myself.
I like that the magic splitting (the tag length is a bit magic in data[0..-17]
and data[-16..-1]
) is contained in the C code, i.e. in the aes256gcm_decrypt
library. The change is a part of https://github.com/clearhaus/aes256gcm_decrypt/pull/5 .
That is, do not input
tag
from Ruby, but splitciphertext
intountagged_ciphertext
andtag
in the C ext.WDYT?