diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-12-12 06:24:27 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-10 16:16:52 -0500 |
commit | d29ce988aeb459203c74f14747f4f77e1829ef78 (patch) | |
tree | 886ec0a429c3b1b5b79f290be6b0d8383b89c30b /include/crypto/internal | |
parent | 14df4d80433b8413f901e80880c39e8759b8418f (diff) |
[CRYPTO] aead: Create default givcipher instances
This patch makes crypto_alloc_aead always return algorithms that is
capable of generating their own IVs through givencrypt and givdecrypt.
All existing AEAD algorithms already do. New ones must either supply
their own or specify a generic IV generator with the geniv field.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/internal')
-rw-r--r-- | include/crypto/internal/aead.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/crypto/internal/aead.h b/include/crypto/internal/aead.h index eb4eee7a7804..d838c945575a 100644 --- a/include/crypto/internal/aead.h +++ b/include/crypto/internal/aead.h | |||
@@ -31,6 +31,9 @@ static inline void crypto_set_aead_spawn( | |||
31 | crypto_set_spawn(&spawn->base, inst); | 31 | crypto_set_spawn(&spawn->base, inst); |
32 | } | 32 | } |
33 | 33 | ||
34 | int crypto_grab_aead(struct crypto_aead_spawn *spawn, const char *name, | ||
35 | u32 type, u32 mask); | ||
36 | |||
34 | static inline void crypto_drop_aead(struct crypto_aead_spawn *spawn) | 37 | static inline void crypto_drop_aead(struct crypto_aead_spawn *spawn) |
35 | { | 38 | { |
36 | crypto_drop_spawn(&spawn->base); | 39 | crypto_drop_spawn(&spawn->base); |