Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53321
b: refs/heads/master
c: e196d62
h: refs/heads/master
i:
  53319: 6ebfa4f
v: v3
  • Loading branch information
Herbert Xu committed May 2, 2007
1 parent d8c6187 commit 80fb03a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 124b53d020622ffa24e27406f2373d5a3debd0d3
refs/heads/master: e196d6259141eda47aeafd88514aae652bfbfc7f
8 changes: 7 additions & 1 deletion trunk/include/linux/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,12 @@ static inline int crypto_ablkcipher_reqsize(struct crypto_ablkcipher *tfm)
return crypto_ablkcipher_crt(tfm)->reqsize;
}

static inline void ablkcipher_request_set_tfm(
struct ablkcipher_request *req, struct crypto_ablkcipher *tfm)
{
req->base.tfm = crypto_ablkcipher_tfm(tfm);
}

static inline struct ablkcipher_request *ablkcipher_request_cast(
struct crypto_async_request *req)
{
Expand All @@ -603,7 +609,7 @@ static inline struct ablkcipher_request *ablkcipher_request_alloc(
crypto_ablkcipher_reqsize(tfm), gfp);

if (likely(req))
req->base.tfm = crypto_ablkcipher_tfm(tfm);
ablkcipher_request_set_tfm(req, tfm);

return req;
}
Expand Down

0 comments on commit 80fb03a

Please sign in to comment.