Commit 38d21433 authored by Herbert Xu's avatar Herbert Xu

crypto: api - Add crypto_alg_extsize helper

This patch adds a crypto_alg_extsize helper that can be used
by algorithm types such as pcompress and shash.
Signed-off-by: default avatarHerbert Xu <>
parent 2a57e424
......@@ -964,6 +964,12 @@ void crypto_xor(u8 *dst, const u8 *src, unsigned int size)
unsigned int crypto_alg_extsize(struct crypto_alg *alg)
return alg->cra_ctxsize;
static int __init crypto_algapi_init(void)
......@@ -103,6 +103,8 @@ int crypto_register_notifier(struct notifier_block *nb);
int crypto_unregister_notifier(struct notifier_block *nb);
int crypto_probing_notify(unsigned long val, void *v);
unsigned int crypto_alg_extsize(struct crypto_alg *alg);
static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment