|
|
@@ -2120,6 +2120,7 @@ static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key,
|
|
|
|
|
|
struct talitos_alg_template {
|
|
|
u32 type;
|
|
|
+ u32 priority;
|
|
|
union {
|
|
|
struct crypto_alg crypto;
|
|
|
struct ahash_alg hash;
|
|
|
@@ -2897,7 +2898,10 @@ static struct talitos_crypto_alg *talitos_alg_alloc(struct device *dev,
|
|
|
}
|
|
|
|
|
|
alg->cra_module = THIS_MODULE;
|
|
|
- alg->cra_priority = TALITOS_CRA_PRIORITY;
|
|
|
+ if (t_alg->algt.priority)
|
|
|
+ alg->cra_priority = t_alg->algt.priority;
|
|
|
+ else
|
|
|
+ alg->cra_priority = TALITOS_CRA_PRIORITY;
|
|
|
alg->cra_alignmask = 0;
|
|
|
alg->cra_ctxsize = sizeof(struct talitos_ctx);
|
|
|
alg->cra_flags |= CRYPTO_ALG_KERN_DRIVER_ONLY;
|