Uh oh!
There was an error while loading. Please reload this page.
Handles variable-length nonce - #125
Conversation
| fn encrypt_in_place_detached( | ||
| &self, | ||
| nonce: &GenericArray<u8, Self::NonceSize>, | ||
| nonce: &[u8], |
There was a problem hiding this comment.
This would require a change in the Aead trait. See RustCrypto/traits#65
tarcieri
commented
Mar 13, 2020
@masihyeganeh so there's another option which preserves type safety for all nonce sizes and avoids making changes to the underlying trait... that would be making the AES implementation generic around different nonce sizes much in the same way it's already generic around I think that's probably the best way to go in general, actually. If you'd like I can adapt your PR to do do that, as |
masihyeganeh
commented
Mar 14, 2020
@tarcieri That would be great. let me know if I can help with that |
tarcieri
commented
Mar 14, 2020
I've open a PR based on this one which makes |
I'm trying to fix#62, but I'm not sure I'm on the right track.
I read source code of other implementations of variable-length nonce GCM. They do it like this:
I did that here. Maybe it's wrong. I'm not sure.
This will be a breaking change but as mentioned in here, it is time to introduce breaking changes.