add ParBlocks type to our AES implementation

see https://github.com/RustCrypto/AEADs/issues/410
This commit is contained in:
bunnie 2022-05-30 04:33:46 +08:00
parent a54e8c79c2
commit 596cebc9c9
2 changed files with 8 additions and 0 deletions

View file

@ -91,6 +91,10 @@ macro_rules! define_aes_impl {
}
}
impl ParBlocksSizeUser for $name {
type ParBlocksSize = FixsliceBlocks;
}
impl From<$name_enc> for $name {
#[inline]
fn from(enc: $name_enc) -> $name {

View file

@ -472,6 +472,10 @@ macro_rules! define_aes_impl {
}
}
impl ParBlocksSizeUser for $name {
type ParBlocksSize = U1;
}
impl From<$name_enc> for $name {
#[inline]
fn from(enc: $name_enc) -> $name {