Tag Info

New answers tagged


As mentioned by SEJPM in the comments, four bytes is much too short for an HMAC key. Since KEY_SECRET is already in place, you could just use it directly as a MAC key, but then you need to make sure that DATA cannot collide with any counter value. You could do this by prefixing DATA with enough constant values to make it longer than the counter. For ...

Top 50 recent answers are included