Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157949
b: refs/heads/master
c: 7d6f564
h: refs/heads/master
i:
  157947: f38244b
v: v3
  • Loading branch information
Herbert Xu committed Jul 8, 2009
1 parent d0bfc78 commit 106fa05
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d06854f0243d91badabaab14503f7f3bb770061d
refs/heads/master: 7d6f56400a695af497a8b7c23ea0ff9c3d9d99f4
10 changes: 10 additions & 0 deletions trunk/crypto/shash.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,5 +518,15 @@ int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn,
}
EXPORT_SYMBOL_GPL(crypto_init_shash_spawn);

struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask)
{
struct crypto_alg *alg;

alg = crypto_attr_alg2(rta, &crypto_shash_type, type, mask);
return IS_ERR(alg) ? ERR_CAST(alg) :
container_of(alg, struct shash_alg, base);
}
EXPORT_SYMBOL_GPL(shash_attr_alg);

MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Synchronous cryptographic hash type");
2 changes: 2 additions & 0 deletions trunk/include/crypto/internal/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ int crypto_init_shash_spawn(struct crypto_shash_spawn *spawn,
struct shash_alg *alg,
struct crypto_instance *inst);

struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask);

static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm)
{
return crypto_tfm_ctx(&tfm->base);
Expand Down

0 comments on commit 106fa05

Please sign in to comment.