Home
last modified time | relevance | path

Searched refs:ECkey (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftEC.c472 ECPrivateKey ECkey; in soft_ecc_sign() local
488 ECkey.ecParams = ecc_ctx->ecparams; in soft_ecc_sign()
496 ECkey.privateValue.data = value; in soft_ecc_sign()
497 ECkey.privateValue.len = value_len; in soft_ecc_sign()
505 if ((ss = ECDSA_SignDigest(&ECkey, &signature_item, &digest_item, 0)) in soft_ecc_sign()
538 ECPublicKey ECkey; in soft_ecc_verify() local
558 ECkey.ecParams = ecc_ctx->ecparams; in soft_ecc_verify()
568 ECkey.publicValue.data = point; in soft_ecc_verify()
569 ECkey.publicValue.len = template.ulValueLen; in soft_ecc_verify()
577 if (ECDSA_VerifyDigest(&ECkey, &signature_item, &digest_item, 0) in soft_ecc_verify()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Decc.c649 ECPrivateKey ECkey; in ecc_sign_common() local
670 ECkey.ecParams = ctx->ecparams; in ecc_sign_common()
676 ECkey.privateValue.data = private; in ecc_sign_common()
677 ECkey.privateValue.len = (uint_t)private_len; in ecc_sign_common()
683 if ((ss = ECDSA_SignDigest(&ECkey, &signature_item, &digest_item, in ecc_sign_common()
851 ECPublicKey ECkey; in ecc_verify_common() local
882 ECkey.ecParams = ctx->ecparams; in ecc_verify_common()
888 ECkey.publicValue.data = public; in ecc_verify_common()
889 ECkey.publicValue.len = (uint_t)public_len; in ecc_verify_common()
892 if (ECDSA_VerifyDigest(&ECkey, &signature_item, &digest_item, kmflag) in ecc_verify_common()