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
The keccakf crate doesn't operate on a state composed of bytes, it operates on a state composed of words. (cf #11, #20). This is currently handled by doing
Unfortunately this isn't quite right because the second pointer has tighter alignment requirements than the first pointer, which isn't guaranteed to have u64 alignment.
The text was updated successfully, but these errors were encountered:
Storing the state as words is unappealing because it's a) wrong -- the state is a byte array and b) it means that we have to do a conversion on every byte access. This might be fine on LE systems where the conversion is a no-op but it seems bad on a BE system, where it would be preferable to do a byteswap before calling keccakf and then swap back.
The
keccakf
crate doesn't operate on a state composed of bytes, it operates on a state composed of words. (cf #11, #20). This is currently handled by doingUnfortunately this isn't quite right because the second pointer has tighter alignment requirements than the first pointer, which isn't guaranteed to have
u64
alignment.The text was updated successfully, but these errors were encountered: