Uh oh!
There was an error while loading. Please reload this page.
Handles variable-length nonce - #85
Conversation
I like the idea of it being possible to use a slice for a nonce (this is a blocker AES-SIV too), but I don't like it being unilateral, because it introduces potential errors when using AEADs with a fixed-size nonce (which is the case 99.9% of the time). I think it might make sense to make the nonce an associated type. See the sketch of that idea I suggested on the original |
masihyeganeh
commented
Mar 11, 2020
I like your solution better. I just not exactly sure how to do it. |
tarcieri
commented
Mar 14, 2020
It seems RustCrypto/AEADs#126 takes care of supporting any-sized GCM none without changing the trait. This also seems like a general solution to the problem (i.e. making |
I'm trying to fix#65, but I'm not sure I'm on the right track.
This PR changes
noncetype to&[u8]instead of fixed-sizedGenericArray.The main code to handle variable-length nonces will be in
RustCrypto/AEADs.