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
AFAIK, AESNI and potentially other primitives require that the encryption blocks are properly aligned. Are alignment requirements described/handled by rust-crypto? How would I go about making a best possible job for plain text, cipher destination, iv and everything else? Do they always have to be "block size" aligned or are there more nuances there?
The text was updated successfully, but these errors were encountered:
dpc
changed the title
Alignement requirements.
Alignement requirements quesiton.
Oct 26, 2016
Interesting. It's unclear to me from the .asm or .c files if or how they handle this, but if so its built into the compiler's handling of the inline assembly for SSE instructions. Appears Rust does not yet offer #[repr(align=16)], so nothing easy one can do from Rust. It's probably worth adding tests to aesni.rs that try badly aligned keys, etc.
Hi,
AFAIK, AESNI and potentially other primitives require that the encryption blocks are properly aligned. Are alignment requirements described/handled by rust-crypto? How would I go about making a best possible job for plain text, cipher destination, iv and everything else? Do they always have to be "block size" aligned or are there more nuances there?
The text was updated successfully, but these errors were encountered: