Skip to content

Commit

Permalink
crypto: cast5/avx - avoid using temporary stack buffers
Browse files Browse the repository at this point in the history
Introduce new assembler functions to avoid use temporary stack buffers in glue
code. This also allows use of vector instructions for xoring output in CTR and
CBC modes and construction of IVs for CTR mode.

ECB mode sees ~0.5% decrease in speed because added one extra function
call. CBC mode decryption and CTR mode benefit from vector operations
and gain ~5%.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Jussi Kivilinna authored and Herbert Xu committed Oct 24, 2012
1 parent facd416 commit c12ab20
Show file tree
Hide file tree
Showing 2 changed files with 280 additions and 131 deletions.
Loading

0 comments on commit c12ab20

Please sign in to comment.