Skip to content

Commit

Permalink
add ParBlocks type to our AES implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie authored and nworbnhoj committed Jun 1, 2022
1 parent 59ef6be commit b0ee0ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/aes/src/soft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions services/aes/src/vex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b0ee0ce

Please sign in to comment.