Lines Matching refs:sig

69 				char alg_name[CRYPTO_MAX_ALG_NAME], bool *sig,  in software_key_determine_akcipher()  argument
74 *sig = true; in software_key_determine_akcipher()
84 *sig = op == kernel_pkey_sign || in software_key_determine_akcipher()
105 *sig = false; in software_key_determine_akcipher()
163 struct crypto_sig *sig; in software_key_query() local
186 sig = crypto_alloc_sig(alg_name, 0, 0); in software_key_query()
187 if (IS_ERR(sig)) { in software_key_query()
188 ret = PTR_ERR(sig); in software_key_query()
193 ret = crypto_sig_set_privkey(sig, key, pkey->keylen); in software_key_query()
195 ret = crypto_sig_set_pubkey(sig, key, pkey->keylen); in software_key_query()
199 len = crypto_sig_maxsize(sig); in software_key_query()
261 crypto_free_sig(sig); in software_key_query()
279 struct crypto_sig *sig; in software_key_eds_op() local
305 sig = crypto_alloc_sig(alg_name, 0, 0); in software_key_eds_op()
306 if (IS_ERR(sig)) { in software_key_eds_op()
307 ret = PTR_ERR(sig); in software_key_eds_op()
312 ret = crypto_sig_set_privkey(sig, key, pkey->keylen); in software_key_eds_op()
314 ret = crypto_sig_set_pubkey(sig, key, pkey->keylen); in software_key_eds_op()
318 ksz = crypto_sig_maxsize(sig); in software_key_eds_op()
355 ret = crypto_sig_sign(sig, in, params->in_len, in software_key_eds_op()
367 crypto_free_sig(sig); in software_key_eds_op()
380 const struct public_key_signature *sig) in public_key_verify_signature() argument
391 BUG_ON(!sig); in public_key_verify_signature()
392 BUG_ON(!sig->s); in public_key_verify_signature()
402 if (sig->pkey_algo) { in public_key_verify_signature()
403 if (strcmp(pkey->pkey_algo, sig->pkey_algo) != 0 && in public_key_verify_signature()
405 strcmp(sig->pkey_algo, "ecdsa") != 0)) in public_key_verify_signature()
409 ret = software_key_determine_akcipher(pkey, sig->encoding, in public_key_verify_signature()
410 sig->hash_algo, alg_name, in public_key_verify_signature()
439 ret = crypto_sig_verify(tfm, sig->s, sig->s_size, in public_key_verify_signature()
440 sig->digest, sig->digest_size); in public_key_verify_signature()
454 const struct public_key_signature *sig) in public_key_verify_signature_2() argument
457 return public_key_verify_signature(pk, sig); in public_key_verify_signature_2()