diff options
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/crypto/aes.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/i386/crypto/aes.c b/arch/i386/crypto/aes.c index b9c7d99160f1..d3806daa3de3 100644 --- a/arch/i386/crypto/aes.c +++ b/arch/i386/crypto/aes.c | |||
@@ -464,6 +464,16 @@ static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, | |||
464 | return 0; | 464 | return 0; |
465 | } | 465 | } |
466 | 466 | ||
467 | static void aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) | ||
468 | { | ||
469 | aes_enc_blk(tfm, dst, src); | ||
470 | } | ||
471 | |||
472 | static void aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) | ||
473 | { | ||
474 | aes_dec_blk(tfm, dst, src); | ||
475 | } | ||
476 | |||
467 | static struct crypto_alg aes_alg = { | 477 | static struct crypto_alg aes_alg = { |
468 | .cra_name = "aes", | 478 | .cra_name = "aes", |
469 | .cra_driver_name = "aes-i586", | 479 | .cra_driver_name = "aes-i586", |
@@ -478,8 +488,8 @@ static struct crypto_alg aes_alg = { | |||
478 | .cia_min_keysize = AES_MIN_KEY_SIZE, | 488 | .cia_min_keysize = AES_MIN_KEY_SIZE, |
479 | .cia_max_keysize = AES_MAX_KEY_SIZE, | 489 | .cia_max_keysize = AES_MAX_KEY_SIZE, |
480 | .cia_setkey = aes_set_key, | 490 | .cia_setkey = aes_set_key, |
481 | .cia_encrypt = aes_enc_blk, | 491 | .cia_encrypt = aes_encrypt, |
482 | .cia_decrypt = aes_dec_blk | 492 | .cia_decrypt = aes_decrypt |
483 | } | 493 | } |
484 | } | 494 | } |
485 | }; | 495 | }; |