Lines Matching refs:mech_type

83 	ecc_mech_type_t	mech_type;  member
93 ecc_mech_type_t mech_type; member
344 check_mech_and_key(ecc_mech_type_t mech_type, crypto_key_t *key, ulong_t class) in check_mech_and_key() argument
351 if (mech_type != ECDSA_SHA1_MECH_INFO_TYPE && in check_mech_and_key()
352 mech_type != ECDSA_MECH_INFO_TYPE) in check_mech_and_key()
455 if (ctxp->mech_type == ECDSA_MECH_INFO_TYPE) in ecc_free_context()
474 ecc_mech_type_t mech_type = mechanism->cm_type; in ecc_sign_verify_common_init() local
501 switch (mech_type) { in ecc_sign_verify_common_init()
518 switch (mech_type) { in ecc_sign_verify_common_init()
529 ctxp->mech_type = mech_type; in ecc_sign_verify_common_init()
533 switch (mech_type) { in ecc_sign_verify_common_init()
552 ecc_mech_type_t mech_type = mechanism->cm_type; in ecc_sign_init() local
554 if ((rv = check_mech_and_key(mech_type, key, in ecc_sign_init()
572 ecc_mech_type_t mech_type = mechanism->cm_type; in ecc_verify_init() local
574 if ((rv = check_mech_and_key(mech_type, key, in ecc_verify_init()
600 ecc_mech_type_t mech_type; in ecc_digest_svrfy_common() local
605 mech_type = ctxp->mech_type; in ecc_digest_svrfy_common()
606 if (mech_type != ECDSA_SHA1_MECH_INFO_TYPE) in ecc_digest_svrfy_common()
611 if (mech_type == ECDSA_SHA1_MECH_INFO_TYPE) { in ecc_digest_svrfy_common()
714 switch (ctxp->mech_type) { in ecc_sign()
737 ecc_mech_type_t mech_type; in ecc_sign_update() local
741 mech_type = ctxp->mech_type; in ecc_sign_update()
743 if (mech_type == ECDSA_MECH_INFO_TYPE) { in ecc_sign_update()
748 if (mech_type == ECDSA_SHA1_MECH_INFO_TYPE) in ecc_sign_update()
786 ecc_mech_type_t mech_type = mechanism->cm_type; in ecc_sign_atomic() local
793 if ((rv = check_mech_and_key(mech_type, key, in ecc_sign_atomic()
818 ctx.mech_type = mech_type; in ecc_sign_atomic()
826 dctx.mech_type = mech_type; in ecc_sign_atomic()
913 switch (ctxp->mech_type) { in ecc_verify()
939 switch (ctxp->mech_type) { in ecc_verify_update()
983 ecc_mech_type_t mech_type = mechanism->cm_type; in ecc_verify_atomic() local
990 if ((rv = check_mech_and_key(mech_type, key, in ecc_verify_atomic()
1015 ctx.mech_type = mech_type; in ecc_verify_atomic()
1023 dctx.mech_type = mech_type; in ecc_verify_atomic()