You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! This is one of the only Ascon implementations i could find that actually implements CXOF128 (neither of the reference implementations do), so i'm using it to sanity-check my own implementation. However, our implementations don't currently agree.
I noticed that in ascon_cxof128_t::customize you are using the byte-length of the customization string whereas the draft spec says to use the bit-length. (I made this mistake initially too.)
Per section 5.3 of the SP 800-232 draft, line 641:
where 𝑍0 is a 64-bit integer that represents the bit-length of the customization string,
Hi! This is one of the only Ascon implementations i could find that actually implements CXOF128 (neither of the reference implementations do), so i'm using it to sanity-check my own implementation. However, our implementations don't currently agree.
I noticed that in
ascon_cxof128_t::customize
you are using the byte-length of the customization string whereas the draft spec says to use the bit-length. (I made this mistake initially too.)Per section 5.3 of the SP 800-232 draft, line 641:
Given this input:
I believe the output should be:
That's what my implementation produces, and with the length issue fixed it's what i get from yours too!
The text was updated successfully, but these errors were encountered: