Searched refs:cm_type (Results 1 - 25 of 61) sorted by relevance

123

/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_ctxops.c93 error = kcf_get_sw_prov(mech->cm_type, &pd, &me, B_TRUE);
104 prov_mech.cm_type = KCF_TO_PROV_MECHNUM(pd, mech->cm_type);
H A Dkcf_dual.c72 rv = kcf_get_hardware_provider(encr_mech->cm_type, encr_key,
73 mac_mech->cm_type, mac_key, pd, &real_provider,
92 if (kcf_get_mech_entry(encr_mech->cm_type, &me) !=
106 if (kcf_get_mech_entry(mac_mech->cm_type, &me) !=
127 KCF_SET_PROVIDER_MECHNUM(encr_mech->cm_type, real_provider,
131 KCF_SET_PROVIDER_MECHNUM(mac_mech->cm_type, real_provider,
148 KCF_SET_PROVIDER_MECHNUM(encr_mech->cm_type, real_provider,
150 cmops->em_framework_encr_mechtype = encr_mech->cm_type;
153 KCF_SET_PROVIDER_MECHNUM(mac_mech->cm_type, real_provider,
155 cmops->em_framework_mac_mechtype = mac_mech->cm_type;
[all...]
H A Dkcf_cipher.c120 error = kcf_get_hardware_provider(mech->cm_type, key,
124 error = kcf_get_hardware_provider(mech->cm_type, key,
145 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, real_provider, &lmech);
164 KCF_CAN_SHARE_OPSTATE(pd, mech->cm_type)) {
169 if ((kcf_get_sw_prov(mech->cm_type, &tpd, &tctxp->kc_mech,
173 sinfo = &(KCF_TO_PROV_MECHINFO(tpd, mech->cm_type));
242 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
331 error = kcf_get_hardware_provider(mech->cm_type, key,
368 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
399 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, p
[all...]
H A Dkcf_mac.c107 rv = kcf_get_hardware_provider(mech->cm_type, key,
143 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
174 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech);
231 rv = kcf_get_hardware_provider(mech->cm_type, key,
267 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
298 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech);
384 rv = kcf_get_hardware_provider(mech->cm_type, key,
404 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, real_provider, &lmech);
447 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
H A Dkcf_keys.c52 rv = kcf_get_hardware_provider(mech->cm_type, NULL,
91 rv = kcf_get_hardware_provider(mech->cm_type, NULL,
131 rv = kcf_get_hardware_provider(mech->cm_type, wrapping_key,
171 rv = kcf_get_hardware_provider(mech->cm_type, unwrapping_key,
211 rv = kcf_get_hardware_provider(mech->cm_type, base_key,
H A Dkcf_digest.c107 rv = kcf_get_hardware_provider(mech->cm_type, NULL,
140 if ((pd = kcf_get_mech_provider(mech->cm_type, NULL, NULL, &error,
152 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech);
221 error = kcf_get_hardware_provider(mech->cm_type, NULL,
241 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, real_provider, &lmech);
281 if ((pd = kcf_get_mech_provider(mech->cm_type, NULL, NULL, &error,
H A Dkcf_sign.c59 rv = kcf_get_hardware_provider(mech->cm_type, key,
103 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
240 rv = kcf_get_hardware_provider(mech->cm_type, key,
271 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
302 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech);
360 rv = kcf_get_hardware_provider(mech->cm_type, key,
399 rv = kcf_get_hardware_provider(mech->cm_type, key,
H A Dkcf_verify.c59 rv = kcf_get_hardware_provider(mech->cm_type, key,
104 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
242 rv = kcf_get_hardware_provider(mech->cm_type, key,
273 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
304 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech);
362 rv = kcf_get_hardware_provider(mech->cm_type, key,
401 rv = kcf_get_hardware_provider(mech->cm_type, key,
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/hash_provider/
H A Dhash_kef_generic.c40 mech.cm_type = context->kef_cksum_mt;
41 if (mech.cm_type == CRYPTO_MECH_INVALID) {
116 mech.cm_type = context->kef_hash_mt;
117 if (mech.cm_type == CRYPTO_MECH_INVALID) {
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/
H A Def_crypto.c45 mech.cm_type = key->kef_mt;
46 if (mech.cm_type == CRYPTO_MECH_INVALID) {
/illumos-gate/usr/src/uts/common/crypto/io/
H A Daes.c258 switch (mechanism->cm_type) {
976 switch (mechanism->cm_type) {
997 switch (mechanism->cm_type) {
1043 if (mechanism->cm_type == AES_CCM_MECH_INFO_TYPE) {
1050 } else if (mechanism->cm_type == AES_GCM_MECH_INFO_TYPE ||
1051 mechanism->cm_type == AES_GMAC_MECH_INFO_TYPE) {
1058 } else if (mechanism->cm_type == AES_CTR_MECH_INFO_TYPE) {
1106 switch (mechanism->cm_type) {
1127 switch (mechanism->cm_type) {
1153 if (mechanism->cm_type
[all...]
H A Drsa.c162 (((mech)->cm_type == RSA_PKCS_MECH_INFO_TYPE || \
163 (mech)->cm_type == RSA_X_509_MECH_INFO_TYPE || \
164 (mech)->cm_type == MD5_RSA_PKCS_MECH_INFO_TYPE || \
165 (mech)->cm_type == SHA1_RSA_PKCS_MECH_INFO_TYPE || \
166 (mech)->cm_type == SHA256_RSA_PKCS_MECH_INFO_TYPE || \
167 (mech)->cm_type == SHA384_RSA_PKCS_MECH_INFO_TYPE || \
168 (mech)->cm_type == SHA512_RSA_PKCS_MECH_INFO_TYPE) ? 1 : 0)
514 ctxp->mech_type = mechanism->cm_type;
562 return (rsa_encrypt_common(mechanism->cm_type, key, plaintext,
729 return (rsa_decrypt_common(mechanism->cm_type, ke
[all...]
H A Dsha2_mod.c276 PROV_SHA2_CTX(ctx)->sc_mech_type = mechanism->cm_type;
277 SHA2Init(mechanism->cm_type, &PROV_SHA2_CTX(ctx)->sc_sha2_ctx);
787 SHA2Init(mechanism->cm_type, &sha2_ctx);
814 if (mechanism->cm_type <= SHA256_HMAC_GEN_MECH_INFO_TYPE)
927 switch (mechanism->cm_type) {
952 PROV_SHA2_HMAC_CTX(ctx)->hc_mech_type = mechanism->cm_type;
968 PROV_SHA2_DIGEST_KEY(mechanism->cm_type / 3,
982 if (mechanism->cm_type % 3 == 2) {
1172 switch (mechanism->cm_type) {
1197 sha2_hmac_ctx.hc_mech_type = mechanism->cm_type;
[all...]
H A Dmd5_mod.c299 if (mechanism->cm_type != MD5_MECH_INFO_TYPE)
780 if (mechanism->cm_type != MD5_MECH_INFO_TYPE)
908 if (mechanism->cm_type != MD5_HMAC_MECH_INFO_TYPE &&
909 mechanism->cm_type != MD5_HMAC_GEN_MECH_INFO_TYPE)
949 PROV_MD5_HMAC_CTX(ctx)->hc_mech_type = mechanism->cm_type;
950 if (mechanism->cm_type == MD5_HMAC_GEN_MECH_INFO_TYPE) {
1120 if (mechanism->cm_type != MD5_HMAC_MECH_INFO_TYPE &&
1121 mechanism->cm_type != MD5_HMAC_GEN_MECH_INFO_TYPE)
1152 if (mechanism->cm_type == MD5_HMAC_GEN_MECH_INFO_TYPE) {
1240 if (mechanism->cm_type !
[all...]
H A Dsha1_mod.c241 if (mechanism->cm_type != SHA1_MECH_INFO_TYPE)
723 if (mechanism->cm_type != SHA1_MECH_INFO_TYPE)
851 if (mechanism->cm_type != SHA1_HMAC_MECH_INFO_TYPE &&
852 mechanism->cm_type != SHA1_HMAC_GEN_MECH_INFO_TYPE)
892 PROV_SHA1_HMAC_CTX(ctx)->hc_mech_type = mechanism->cm_type;
893 if (mechanism->cm_type == SHA1_HMAC_GEN_MECH_INFO_TYPE) {
1062 if (mechanism->cm_type != SHA1_HMAC_MECH_INFO_TYPE &&
1063 mechanism->cm_type != SHA1_HMAC_GEN_MECH_INFO_TYPE)
1092 if (mechanism->cm_type == SHA1_HMAC_GEN_MECH_INFO_TYPE) {
1182 if (mechanism->cm_type !
[all...]
H A Dskein_mod.c205 switch (mechanism->cm_type) {
490 * The mechanism cm_type must be one of SKEIN_*_MECH_INFO_TYPE. The cm_param
502 if (!VALID_SKEIN_DIGEST_MECH(mechanism->cm_type))
510 SKEIN_CTX(ctx)->sc_mech_type = mechanism->cm_type;
656 if (!VALID_SKEIN_DIGEST_MECH(mechanism->cm_type))
658 skein_ctx.sc_mech_type = mechanism->cm_type;
690 if (!VALID_SKEIN_MAC_MECH(mechanism->cm_type))
694 ctx->sc_mech_type = mechanism->cm_type;
710 * Otherwise a new context will be constructed. The mechanism cm_type must
H A Ddprov.c1935 if (mechanism->cm_type != MD4_MECH_INFO_TYPE &&
1936 mechanism->cm_type != MD5_MECH_INFO_TYPE &&
1937 mechanism->cm_type != SHA1_MECH_INFO_TYPE &&
1938 mechanism->cm_type != SHA256_MECH_INFO_TYPE &&
1939 mechanism->cm_type != SHA384_MECH_INFO_TYPE &&
1940 mechanism->cm_type != SHA512_MECH_INFO_TYPE) {
1942 "0x%llx\n", (unsigned long long)mechanism->cm_type);
2071 if (mechanism->cm_type != MD4_MECH_INFO_TYPE &&
2072 mechanism->cm_type != MD5_MECH_INFO_TYPE &&
2073 mechanism->cm_type !
[all...]
H A Decc.c474 ecc_mech_type_t mech_type = mechanism->cm_type;
552 ecc_mech_type_t mech_type = mechanism->cm_type;
572 ecc_mech_type_t mech_type = mechanism->cm_type;
786 ecc_mech_type_t mech_type = mechanism->cm_type;
815 if (mechanism->cm_type == ECDSA_MECH_INFO_TYPE) {
983 ecc_mech_type_t mech_type = mechanism->cm_type;
1012 if (mechanism->cm_type == ECDSA_MECH_INFO_TYPE) {
1062 if (mechanism->cm_type != EC_KEY_PAIR_GEN_MECH_INFO_TYPE) {
1187 if (mechanism->cm_type != ECDH1_DERIVE_MECH_INFO_TYPE) {
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_sign_kcf.c44 mech->cm_type = t;
114 mech->cm_type = t;
/illumos-gate/usr/src/uts/common/sys/crypto/
H A Dops_impl.h378 dops->do_framework_mechtype = mechp->cm_type; \
395 mops->mo_framework_mechtype = mechp->cm_type; \
413 cops->eo_framework_mechtype = mechp->cm_type; \
431 cops->dop_framework_mechtype = mechp->cm_type; \
449 sops->so_framework_mechtype = mechp->cm_type; \
467 vops->vo_framework_mechtype = mechp->cm_type; \
566 kops->ko_framework_mechtype = mechp->cm_type; \
607 kops->ko_framework_mechtype = mechp->cm_type; \
625 (mechp)->cm_type = \
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_ccmp.c250 mech.cm_type = crypto_mech2id(SUN_CKM_AES_CCM);
255 ieee80211_dbg(IEEE80211_MSG_CRYPTO, "cm_type=%lx", mech.cm_type);
257 ieee80211_dbg(IEEE80211_MSG_CRYPTO, "cm_type=%llx", mech.cm_type);
303 mech.cm_type = crypto_mech2id(SUN_CKM_AES_CCM);
308 ieee80211_dbg(IEEE80211_MSG_CRYPTO, "cm_type=%lx", mech.cm_type);
310 ieee80211_dbg(IEEE80211_MSG_CRYPTO, "cm_type=%llx", mech.cm_type);
[all...]
/illumos-gate/usr/src/uts/common/inet/kssl/
H A Dkssl.c263 if (rsa_x509_mech.cm_type == CRYPTO_MECH_INVALID) {
378 mech_to_cipher_tab[0].mech = rsa_x509_mech.cm_type =
380 mech_to_cipher_tab[1].mech = hmac_md5_mech.cm_type =
382 mech_to_cipher_tab[2].mech = hmac_sha1_mech.cm_type =
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_sched.c377 dops->do_mech.cm_type = dops->do_framework_mechtype;
387 mops->mo_mech.cm_type = mops->mo_framework_mechtype;
397 sops->so_mech.cm_type = sops->so_framework_mechtype;
416 vops->vo_mech.cm_type = vops->vo_framework_mechtype;
435 eops->eo_mech.cm_type = eops->eo_framework_mechtype;
445 dcrops->dop_mech.cm_type = dcrops->dop_framework_mechtype;
456 eops->em_encr_mech.cm_type = eops->em_framework_encr_mechtype;
458 eops->em_mac_mech.cm_type = eops->em_framework_mac_mechtype;
469 dops->md_mac_mech.cm_type = dops->md_framework_mac_mechtype;
471 dops->md_decr_mech.cm_type
[all...]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_sign.c68 crypto_mech_md5.cm_type = crypto_mech2id(SUN_CKM_MD5);
127 if (crypto_mech_md5.cm_type == CRYPTO_MECH_INVALID) {
/illumos-gate/usr/src/uts/common/sys/ib/ibtl/
H A Dibti_cm.h475 ibt_cm_event_type_t cm_type; /* Describes the event */ member in struct:ibt_cm_event_s
595 ibt_cm_ud_event_type_t cm_type; /* Describes the event record */ member in struct:ibt_cm_ud_event_s

Completed in 95 milliseconds

123