mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add ParBlocks type to our AES implementation
see https://github.com/RustCrypto/AEADs/issues/410
This commit is contained in:
parent
a54e8c79c2
commit
596cebc9c9
2 changed files with 8 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue