Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99298
b: refs/heads/master
c: 166247f
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu committed Jul 10, 2008
1 parent 0a73735 commit 3035f25
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca786dc738f4f583b57b1bba7a335b5e8233f4b0
refs/heads/master: 166247f46a9c866e6f7f7d2212be875fb82212a1
1 change: 0 additions & 1 deletion trunk/crypto/ahash.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ static int crypto_init_ahash_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
crt->final = alg->final;
crt->digest = alg->digest;
crt->setkey = ahash_setkey;
crt->base = __crypto_ahash_cast(tfm);
crt->digestsize = alg->digestsize;

return 0;
Expand Down
1 change: 0 additions & 1 deletion trunk/crypto/digest.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ int crypto_init_digest_ops_async(struct crypto_tfm *tfm)
crt->setkey = dalg->dia_setkey ? digest_async_setkey :
digest_async_nosetkey;
crt->digestsize = dalg->dia_digestsize;
crt->base = __crypto_ahash_cast(tfm);

return 0;
}
1 change: 0 additions & 1 deletion trunk/crypto/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ static int crypto_init_hash_ops_async(struct crypto_tfm *tfm)
crt->digest = hash_async_digest;
crt->setkey = hash_async_setkey;
crt->digestsize = alg->digestsize;
crt->base = __crypto_ahash_cast(tfm);

return 0;
}
Expand Down
7 changes: 2 additions & 5 deletions trunk/include/linux/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ struct ablkcipher_request {
struct ahash_request {
struct crypto_async_request base;

void *info;

unsigned int nbytes;
struct scatterlist *src;
u8 *result;
Expand Down Expand Up @@ -420,7 +418,6 @@ struct ahash_tfm {
unsigned int keylen);

unsigned int digestsize;
struct crypto_ahash *base;
unsigned int reqsize;
};

Expand Down Expand Up @@ -1384,7 +1381,7 @@ static inline int crypto_ahash_setkey(struct crypto_ahash *tfm,
{
struct ahash_tfm *crt = crypto_ahash_crt(tfm);

return crt->setkey(crt->base, key, keylen);
return crt->setkey(tfm, key, keylen);
}

static inline int crypto_ahash_digest(struct ahash_request *req)
Expand All @@ -1396,7 +1393,7 @@ static inline int crypto_ahash_digest(struct ahash_request *req)
static inline void ahash_request_set_tfm(struct ahash_request *req,
struct crypto_ahash *tfm)
{
req->base.tfm = crypto_ahash_tfm(crypto_ahash_crt(tfm)->base);
req->base.tfm = crypto_ahash_tfm(tfm);
}

static inline struct ahash_request *ahash_request_alloc(
Expand Down

0 comments on commit 3035f25

Please sign in to comment.