git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
arch
/
s390
/
crypto
/
aes_s390.c
diff --git
a/arch/s390/crypto/aes_s390.c
b/arch/s390/crypto/aes_s390.c
index
5713c7e
..
c5ca2dc
100644
(file)
--- 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;
};
int key_len;
};
-static int aes_set_key(
struct crypto_tfm *tfm, const u8 *in_key
,
- u
nsigned int key_len, u
32 *flags)
+static int aes_set_key(
void *ctx, const u8 *in_key, unsigned int key_len
,
+ u32 *flags)
{
{
- struct s390_aes_ctx *sctx = c
rypto_tfm_ctx(tfm)
;
+ struct s390_aes_ctx *sctx = c
tx
;
switch (key_len) {
case 16:
switch (key_len) {
case 16:
@@
-70,9
+70,9
@@
fail:
return -EINVAL;
}
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 = c
rypto_tfm_ctx(tfm)
;
+ const struct s390_aes_ctx *sctx = c
tx
;
switch (sctx->key_len) {
case 16:
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 = c
rypto_tfm_ctx(tfm)
;
+ const struct s390_aes_ctx *sctx = c
tx
;
switch (sctx->key_len) {
case 16:
switch (sctx->key_len) {
case 16: