Document where the design for `s2v` comes from
Closed this issue · 2 comments
cipriancraciun commented
Looking at the implementation of s2v
it resembles the S2V
construct from RFC 5297.
The only difference I see, besides the choice of hash function and sizes, is that if the message is less than the MAC size, you apply an extra d[mlen] ^= 0x80;
.
Am I correct?