X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=arch%2Fs390%2Fcrypto%2Faes_s390.c;h=c5ca2dc5d4281ee67d7d67be936dec4ec2214ff0;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=5713c7e5bd169a52697b4d955e7daa0569d000f0;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/arch/s390/crypto/aes_s390.c b/arch/s390/crypto/aes_s390.c index 5713c7e5b..c5ca2dc5d 100644 --- a/arch/s390/crypto/aes_s390.c +++ b/arch/s390/crypto/aes_s390.c @@ -37,10 +37,10 @@ struct s390_aes_ctx { int key_len; }; -static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, - unsigned int key_len, u32 *flags) +static int aes_set_key(void *ctx, const u8 *in_key, unsigned int key_len, + u32 *flags) { - struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); + struct s390_aes_ctx *sctx = ctx; switch (key_len) { case 16: @@ -70,9 +70,9 @@ fail: return -EINVAL; } -static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) +static void aes_encrypt(void *ctx, u8 *out, const u8 *in) { - const struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); + const struct s390_aes_ctx *sctx = ctx; switch (sctx->key_len) { case 16: @@ -90,9 +90,9 @@ static void aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) } } -static void aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) +static void aes_decrypt(void *ctx, u8 *out, const u8 *in) { - const struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm); + const struct s390_aes_ctx *sctx = ctx; switch (sctx->key_len) { case 16: