Conversation
Renames `AeadInPlaceDetached` to `AeadInOut`, and changes the type signature so the provided `buffer` is now an `InOutBuf`
newpavlov
left a comment
There was a problem hiding this comment.
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
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
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
Renames
AeadInPlaceDetachedtoAeadInOut, and changes the type signature so the providedbufferis now anInOutBuf