diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-08-06 23:12:59 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-21 11:41:49 +1000 |
commit | f3f632d61ae9af85d436706ee8e33af1a7fb9c28 (patch) | |
tree | 38c9aa8a1210d88d60a7d961c47e15210d16ca78 /crypto/api.c | |
parent | 7fed0bf271b374be4c98a5880faed4b1128e78e9 (diff) | |
download | linux-rpi3-f3f632d61ae9af85d436706ee8e33af1a7fb9c28.tar.gz linux-rpi3-f3f632d61ae9af85d436706ee8e33af1a7fb9c28.tar.bz2 linux-rpi3-f3f632d61ae9af85d436706ee8e33af1a7fb9c28.zip |
[CRYPTO] api: Added asynchronous flag
This patch adds the asynchronous flag and changes all existing users to
only look up algorithms that are synchronous.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/api.c')
-rw-r--r-- | crypto/api.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/api.c b/crypto/api.c index 7e5522cf856e..1e4692a13474 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -355,7 +355,7 @@ struct crypto_tfm *crypto_alloc_tfm(const char *name, u32 flags) do { struct crypto_alg *alg; - alg = crypto_alg_mod_lookup(name, 0, 0); + alg = crypto_alg_mod_lookup(name, 0, CRYPTO_ALG_ASYNC); err = PTR_ERR(alg); if (IS_ERR(alg)) continue; @@ -394,7 +394,8 @@ void crypto_free_tfm(struct crypto_tfm *tfm) int crypto_alg_available(const char *name, u32 flags) { int ret = 0; - struct crypto_alg *alg = crypto_alg_mod_lookup(name, 0, 0); + struct crypto_alg *alg = crypto_alg_mod_lookup(name, 0, + CRYPTO_ALG_ASYNC); if (!IS_ERR(alg)) { crypto_mod_put(alg); |