Message ID | 20201204170319.20383-4-laniel_francis@privacyrequired.com |
---|---|
State | New |
Headers | show |
Series | Replace strstarts() by str_has_prefix() | expand |
diff --git a/crypto/essiv.c b/crypto/essiv.c index d012be23d496..f85d4416891f 100644 --- a/crypto/essiv.c +++ b/crypto/essiv.c @@ -504,7 +504,7 @@ static int essiv_create(struct crypto_template *tmpl, struct rtattr **tb) goto out_free_inst; aead_alg = crypto_spawn_aead_alg(&ictx->u.aead_spawn); block_base = &aead_alg->base; - if (!strstarts(block_base->cra_name, "authenc(")) { + if (!str_has_prefix(block_base->cra_name, "authenc(")) { pr_warn("Only authenc() type AEADs are supported by ESSIV\n"); err = -EINVAL; goto out_drop_skcipher;