-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aead: add inout
support
#1793
aead: add inout
support
#1793
Conversation
Renames `AeadInPlaceDetached` to `AeadInOut`, and changes the type signature so the provided `buffer` is now an `InOutBuf`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's worth to gate inout
and have the split between AeadInPlace
and AeadInOut
. If your intent is to use the traits for hardware-based encryptors which can not support buf-to-buf mode of operation, then I think they should implement the inout
API by simply copying data from input to output buffer in the case the buffers are separate.
But I guess we can discuss it in separate PRs/issues.
It's for wrapping any API which can't use the I think we can potentially combine |
Replaces the previous `AeadInPlaceDetached` impls with `AeadInOut`, which was introduced in RustCrypto/traits#1793
About gating the |
@baloo as mentioned above, it's gated to ensure the traits are still useful/usable for use cases beyond our own crates |
fair enough. |
Replaces the previous `AeadInPlaceDetached` impls with `AeadInOut`, which was introduced in RustCrypto/traits#1793
Replaces the previous `AeadInPlaceDetached` impls with `AeadInOut`, which was introduced in RustCrypto/traits#1793
Replaces the previous `AeadInPlaceDetached` impls with `AeadInOut`, which was introduced in RustCrypto/traits#1793
Replaces the previous `AeadInPlaceDetached` impls with `AeadInOut`, which was introduced in RustCrypto/traits#1793
Replaces the previous `AeadInPlaceDetached` impls with `AeadInOut`, which was introduced in RustCrypto/traits#1793
Replaces the previous `AeadInPlaceDetached` impls with `AeadInOut`, which was introduced in RustCrypto/traits#1793
This is to prepare the migration to `AeadInOut`, following RustCrypto/traits#1793 Note: there is a strong chance this could actually use the StreamCipherCore api, but I couldn't not make it fit.
Replaces the previous `AeadInPlaceDetached` impls with `AeadInOut`, which was introduced in RustCrypto/traits#1793
Renames
AeadInPlaceDetached
toAeadInOut
, and changes the type signature so the providedbuffer
is now anInOutBuf