Home
last modified time | relevance | path

Searched hist:bc3f42acc4eefc5e7e300596f0836e0d9ad9f4a8 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/x86/crypto/
H A Dblowfish-x86_64-asm_64.Sdiff bc3f42acc4eefc5e7e300596f0836e0d9ad9f4a8 Mon Jan 30 19:27:57 CST 2023 Peter Lafreniere <peter@n8pjl.ca> crypto: x86/blowfish - Convert to use ECB/CBC helpers

We can simplify the blowfish-x86_64 glue code by using the preexisting
ECB/CBC helper macros. Additionally, this allows for easier reuse of asm
functions in later x86 implementations of blowfish.

This involves:
1 - Modifying blowfish_dec_blk_4way() to xor outputs when a flag is
passed.
2 - Renaming blowfish_dec_blk_4way() to __blowfish_dec_blk_4way().
3 - Creating two wrapper functions around __blowfish_dec_blk_4way() for
use in the ECB/CBC macros.
4 - Removing the custom ecb_encrypt() and cbc_encrypt() routines in
favor of macro-based routines.

Signed-off-by: Peter Lafreniere <peter@n8pjl.ca>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
H A Dblowfish_glue.cdiff bc3f42acc4eefc5e7e300596f0836e0d9ad9f4a8 Mon Jan 30 19:27:57 CST 2023 Peter Lafreniere <peter@n8pjl.ca> crypto: x86/blowfish - Convert to use ECB/CBC helpers

We can simplify the blowfish-x86_64 glue code by using the preexisting
ECB/CBC helper macros. Additionally, this allows for easier reuse of asm
functions in later x86 implementations of blowfish.

This involves:
1 - Modifying blowfish_dec_blk_4way() to xor outputs when a flag is
passed.
2 - Renaming blowfish_dec_blk_4way() to __blowfish_dec_blk_4way().
3 - Creating two wrapper functions around __blowfish_dec_blk_4way() for
use in the ECB/CBC macros.
4 - Removing the custom ecb_encrypt() and cbc_encrypt() routines in
favor of macro-based routines.

Signed-off-by: Peter Lafreniere <peter@n8pjl.ca>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>