Lines Matching refs:mech_type

82 	rsa_mech_type_t	mech_type;  member
91 rsa_mech_type_t mech_type; member
514 ctxp->mech_type = mechanism->cm_type; in rsa_common_init()
540 rv = rsa_encrypt_common(ctxp->mech_type, ctxp->key, plaintext, in rsaprov_encrypt()
575 if (ctxp->mech_type == RSA_PKCS_MECH_INFO_TYPE || in rsa_free_context()
576 ctxp->mech_type == RSA_X_509_MECH_INFO_TYPE) in rsa_free_context()
588 rsa_encrypt_common(rsa_mech_type_t mech_type, crypto_key_t *key, in rsa_encrypt_common() argument
607 if (mech_type == RSA_PKCS_MECH_INFO_TYPE) { in rsa_encrypt_common()
628 if (mech_type == RSA_PKCS_MECH_INFO_TYPE) { in rsa_encrypt_common()
707 rv = rsa_decrypt_common(ctxp->mech_type, ctxp->key, in rsaprov_decrypt()
734 rsa_decrypt_common(rsa_mech_type_t mech_type, crypto_key_t *key, in rsa_decrypt_common() argument
766 if (mech_type == RSA_PKCS_MECH_INFO_TYPE) { in rsa_decrypt_common()
879 ctxp->mech_type = mechanism->cm_type; in rsa_sign_verify_common_init()
945 rsa_mech_type_t mech_type; in rsa_digest_svrfy_common() local
950 mech_type = ctxp->mech_type; in rsa_digest_svrfy_common()
951 if (mech_type == RSA_PKCS_MECH_INFO_TYPE || in rsa_digest_svrfy_common()
952 mech_type == RSA_X_509_MECH_INFO_TYPE) in rsa_digest_svrfy_common()
975 if (mech_type == MD5_RSA_PKCS_MECH_INFO_TYPE) in rsa_digest_svrfy_common()
979 else if (mech_type == SHA1_RSA_PKCS_MECH_INFO_TYPE) in rsa_digest_svrfy_common()
998 switch (mech_type) { in rsa_digest_svrfy_common()
1039 rv = rsa_sign_common(mech_type, ctxp->key, &der_cd, in rsa_digest_svrfy_common()
1042 rv = rsa_verify_common(mech_type, ctxp->key, &der_cd, in rsa_digest_svrfy_common()
1049 rsa_sign_common(rsa_mech_type_t mech_type, crypto_key_t *key, in rsa_sign_common() argument
1067 switch (mech_type) { in rsa_sign_common()
1088 switch (mech_type) { in rsa_sign_common()
1137 switch (ctxp->mech_type) { in rsaprov_sign()
1148 rv = rsa_sign_common(ctxp->mech_type, ctxp->key, data, in rsaprov_sign()
1165 rsa_mech_type_t mech_type; in rsa_sign_update() local
1169 mech_type = ctxp->mech_type; in rsa_sign_update()
1171 if (mech_type == RSA_PKCS_MECH_INFO_TYPE || in rsa_sign_update()
1172 mech_type == RSA_X_509_MECH_INFO_TYPE) in rsa_sign_update()
1175 if (mech_type == MD5_RSA_PKCS_MECH_INFO_TYPE) in rsa_sign_update()
1180 else if (mech_type == SHA1_RSA_PKCS_MECH_INFO_TYPE) in rsa_sign_update()
1231 dctx.mech_type = mechanism->cm_type; in rsa_sign_atomic()
1263 rsa_verify_common(rsa_mech_type_t mech_type, crypto_key_t *key, in rsa_verify_common() argument
1290 if (mech_type == RSA_X_509_MECH_INFO_TYPE) { in rsa_verify_common()
1330 switch (ctxp->mech_type) { in rsaprov_verify()
1341 rv = rsa_verify_common(ctxp->mech_type, ctxp->key, data, in rsaprov_verify()
1363 switch (ctxp->mech_type) { in rsa_verify_update()
1432 dctx.mech_type = mechanism->cm_type; in rsa_verify_atomic()
1465 rsa_verify_recover_common(rsa_mech_type_t mech_type, crypto_key_t *key, in rsa_verify_recover_common() argument
1495 if (mech_type == RSA_PKCS_MECH_INFO_TYPE) { in rsa_verify_recover_common()
1531 rv = rsa_verify_recover_common(ctxp->mech_type, ctxp->key, in rsa_verify_recover()