Home
last modified time | relevance | path

Searched refs:CRYPTO_SUCCESS (Results 1 – 25 of 88) sorted by relevance

1234

/titanic_41/usr/src/uts/common/crypto/io/
H A Drsa.c387 &modulus_len)) != CRYPTO_SUCCESS) { in check_mech_and_key()
460 return (CRYPTO_SUCCESS); in knzero_random_generator()
499 if ((rv = check_mech_and_key(mechanism, key)) != CRYPTO_SUCCESS) in rsa_common_init()
510 kmflag)) != CRYPTO_SUCCESS) { in rsa_common_init()
518 return (CRYPTO_SUCCESS); in rsa_common_init()
558 if ((rv = check_mech_and_key(mechanism, key)) != CRYPTO_SUCCESS) in rsa_encrypt_atomic()
584 return (CRYPTO_SUCCESS); in rsa_free_context()
602 &modulus_len)) != CRYPTO_SUCCESS) { in rsa_encrypt_common()
625 != CRYPTO_SUCCESS) in rsa_encrypt_common()
632 if (rv != CRYPTO_SUCCESS) in rsa_encrypt_common()
[all …]
H A Daes.c256 int rv = CRYPTO_SUCCESS; in aes_check_mech_param()
323 return (CRYPTO_SUCCESS); in init_keysched()
373 != CRYPTO_SUCCESS) in aes_common_init()
378 if (rv != CRYPTO_SUCCESS) { in aes_common_init()
385 return (CRYPTO_SUCCESS); in aes_common_init()
459 if (ret != CRYPTO_SUCCESS) { in aes_encrypt()
479 if (ret != CRYPTO_SUCCESS) { in aes_encrypt()
501 if (ret != CRYPTO_SUCCESS) { in aes_encrypt()
580 if (ret != CRYPTO_SUCCESS) { in aes_decrypt()
595 if (ret == CRYPTO_SUCCESS) { in aes_decrypt()
[all …]
H A Dblowfish.c258 return (CRYPTO_SUCCESS); in init_keysched()
311 if (rv != CRYPTO_SUCCESS) { in blowfish_common_init()
318 return (CRYPTO_SUCCESS); in blowfish_common_init()
425 int ret = CRYPTO_SUCCESS; in blowfish_encrypt_update()
469 if (ret == CRYPTO_SUCCESS) { in blowfish_encrypt_update()
488 int ret = CRYPTO_SUCCESS; in blowfish_decrypt_update()
532 if (ret == CRYPTO_SUCCESS) { in blowfish_decrypt_update()
565 return (CRYPTO_SUCCESS); in blowfish_encrypt_final()
589 return (CRYPTO_SUCCESS); in blowfish_decrypt_final()
631 if (ret != CRYPTO_SUCCESS) in blowfish_encrypt_atomic()
[all …]
H A Dmd4_mod.c228 return (CRYPTO_SUCCESS); in md4_digest_init()
286 return (CRYPTO_SUCCESS); in md4_digest_update_uio()
383 return (CRYPTO_SUCCESS); in md4_digest_final_uio()
431 return (CRYPTO_SUCCESS); in md4_digest_update_mblk()
514 return (CRYPTO_SUCCESS); in md4_digest_final_mblk()
522 int ret = CRYPTO_SUCCESS; in md4_digest()
557 if (ret != CRYPTO_SUCCESS) { in md4_digest()
588 if (ret == CRYPTO_SUCCESS) { in md4_digest()
604 int ret = CRYPTO_SUCCESS; in md4_digest_update()
637 int ret = CRYPTO_SUCCESS; in md4_digest_final()
[all …]
H A Dmd5_mod.c266 CRYPTO_SUCCESS) in _fini()
313 return (CRYPTO_SUCCESS); in md5_digest_init()
371 return (CRYPTO_SUCCESS); in md5_digest_update_uio()
468 return (CRYPTO_SUCCESS); in md5_digest_final_uio()
516 return (CRYPTO_SUCCESS); in md5_digest_update_mblk()
599 return (CRYPTO_SUCCESS); in md5_digest_final_mblk()
607 int ret = CRYPTO_SUCCESS; in md5_digest()
642 if (ret != CRYPTO_SUCCESS) { in md5_digest()
673 if (ret == CRYPTO_SUCCESS) { in md5_digest()
689 int ret = CRYPTO_SUCCESS; in md5_digest_update()
[all …]
H A Decc.c325 return (CRYPTO_SUCCESS); in get_template_attr_scalar_common()
346 int rv = CRYPTO_SUCCESS; in check_mech_and_key()
362 &point_len)) != CRYPTO_SUCCESS) { in check_mech_and_key()
372 &value_len)) != CRYPTO_SUCCESS) { in check_mech_and_key()
441 return (CRYPTO_SUCCESS); in ecc_knzero_random_generator()
517 kmflag)) != CRYPTO_SUCCESS) { in ecc_sign_verify_common_init()
541 return (CRYPTO_SUCCESS); in ecc_sign_verify_common_init()
555 CKO_PRIVATE_KEY)) != CRYPTO_SUCCESS) in ecc_sign_init()
575 CKO_PUBLIC_KEY)) != CRYPTO_SUCCESS) in ecc_verify_init()
615 if (rv != CRYPTO_SUCCESS) in ecc_digest_svrfy_common()
[all …]
H A Dsha1_mod.c255 return (CRYPTO_SUCCESS); in sha1_digest_init()
314 return (CRYPTO_SUCCESS); in sha1_digest_update_uio()
411 return (CRYPTO_SUCCESS); in sha1_digest_final_uio()
459 return (CRYPTO_SUCCESS); in sha1_digest_update_mblk()
542 return (CRYPTO_SUCCESS); in sha1_digest_final_mblk()
550 int ret = CRYPTO_SUCCESS; in sha1_digest()
585 if (ret != CRYPTO_SUCCESS) { in sha1_digest()
616 if (ret == CRYPTO_SUCCESS) { in sha1_digest()
632 int ret = CRYPTO_SUCCESS; in sha1_digest_update()
665 int ret = CRYPTO_SUCCESS; in sha1_digest_final()
[all …]
H A Dsha2_mod.c279 return (CRYPTO_SUCCESS); in sha2_digest_init()
336 return (CRYPTO_SUCCESS); in sha2_digest_update_uio()
439 return (CRYPTO_SUCCESS); in sha2_digest_final_uio()
487 return (CRYPTO_SUCCESS); in sha2_digest_update_mblk()
573 return (CRYPTO_SUCCESS); in sha2_digest_final_mblk()
581 int ret = CRYPTO_SUCCESS; in sha2_digest()
631 if (ret != CRYPTO_SUCCESS) { in sha2_digest()
662 if (ret == CRYPTO_SUCCESS) in sha2_digest()
677 int ret = CRYPTO_SUCCESS; in sha2_digest_update()
710 int ret = CRYPTO_SUCCESS; in sha2_digest_final()
[all …]
H A Ddca_3des.c99 if ((rv = dca_verifyio(in, out)) != CRYPTO_SUCCESS) { in dca_3des()
108 return (CRYPTO_SUCCESS); in dca_3des()
117 if ((rv = dca_dupcrypto(in, nin)) != CRYPTO_SUCCESS) { in dca_3des()
199 if ((rv = dca_verifyio(in, out)) != CRYPTO_SUCCESS) { in dca_3desupdate()
218 CRYPTO_SUCCESS) { in dca_3desupdate()
231 return (CRYPTO_SUCCESS); in dca_3desupdate()
247 rawlen % DESBLOCK, des_ctx->dr_ctx.resid)) != CRYPTO_SUCCESS) { in dca_3desupdate()
261 if ((rv = dca_dupcrypto(in, nin)) != CRYPTO_SUCCESS) { in dca_3desupdate()
292 int rv = CRYPTO_SUCCESS; in dca_3desfinal()
339 if (rv != CRYPTO_SUCCESS) { in dca_3desatomic()
[all …]
H A Ddprov.c1832 &softc->ds_prov_handle)) != CRYPTO_SUCCESS) { in dprov_attach()
1870 softc->ds_prov_handle)) != CRYPTO_SUCCESS) { in dprov_detach()
4244 return (CRYPTO_SUCCESS); in dprov_alloc_context()
4251 return (CRYPTO_SUCCESS); in dprov_free_context()
4294 return (CRYPTO_SUCCESS); in dprov_free_context()
4774 rv = CRYPTO_SUCCESS; in dprov_copyin_mechanism()
4798 rv = CRYPTO_SUCCESS; in dprov_copyin_mechanism()
4817 return (CRYPTO_SUCCESS); in dprov_copyout_mechanism()
4834 return (CRYPTO_SUCCESS); in dprov_free_mechanism()
4849 return (CRYPTO_SUCCESS); in dprov_free_mechanism()
[all …]
H A Dcrypto.c256 rctl_chk = B_FALSE, CRYPTO_SUCCESS) : \
866 if (rv != CRYPTO_SUCCESS) { in get_function_list()
902 rv = CRYPTO_SUCCESS; in get_function_list()
962 rv = CRYPTO_SUCCESS; in get_mechanism_number()
1001 STRUCT_FSET(get_list, ml_return_value, CRYPTO_SUCCESS); in get_mechanism_list()
1115 if (rv != CRYPTO_SUCCESS) { in get_all_mechanism_info()
1144 if (req_count == 0 || num_mech_infos == 0 || rv != CRYPTO_SUCCESS || in get_all_mechanism_info()
1186 if (rval != CRYPTO_SUCCESS) in crypto_get_provider_list()
1218 return (CRYPTO_SUCCESS); in crypto_get_provider_list()
1251 if (rv != CRYPTO_SUCCESS) { in get_provider_list()
[all …]
H A Ddca_rsa.c136 CRYPTO_SIGNATURE_LEN_RANGE, CRYPTO_SUCCESS)) != in dca_rsastart()
137 CRYPTO_SUCCESS) in dca_rsastart()
211 if (errno == CRYPTO_SUCCESS) { in dca_rsadone()
238 if (errno != CRYPTO_SUCCESS && in dca_rsadone()
256 CRYPTO_SUCCESS) in dca_rsadone()
299 if (errno == CRYPTO_SUCCESS) { in dca_rsaverifydone()
331 if (errno != CRYPTO_SUCCESS && in dca_rsaverifydone()
349 CRYPTO_SUCCESS) in dca_rsaverifydone()
461 &attrdata, &(reqp->dr_ctx.modlen))) != CRYPTO_SUCCESS) { in dca_rsainit()
480 (void **) &exp, &explen)) != CRYPTO_SUCCESS) { in dca_rsainit()
[all …]
H A Darcfour.c229 return (CRYPTO_SUCCESS); in rc4_common_init()
251 int ret = CRYPTO_SUCCESS; in rc4_crypt_update()
358 return (CRYPTO_SUCCESS); in rc4_crypt_update()
386 if (ret != CRYPTO_SUCCESS) in rc4_crypt_update()
414 if (ret != CRYPTO_SUCCESS) in rc4_crypt_update()
421 if (ret != CRYPTO_SUCCESS) in rc4_crypt_update()
461 if (ret != CRYPTO_SUCCESS) in rc4_crypt_update()
507 if (ret != CRYPTO_SUCCESS) in rc4_crypt_atomic()
529 return (CRYPTO_SUCCESS); in rc4_free_context()
552 return (CRYPTO_SUCCESS); in crypto_arcfour_crypt()
[all …]
H A Ddca_dsa.c98 if (err != CRYPTO_SUCCESS) { in dca_dsa_sign()
151 if (errno == CRYPTO_SUCCESS) { in dca_dsa_sign_done()
167 if (errno != CRYPTO_SUCCESS) { in dca_dsa_sign_done()
174 if (errno != CRYPTO_SUCCESS) { in dca_dsa_sign_done()
238 if (err != CRYPTO_SUCCESS) { in dca_dsa_verify()
245 if (err != CRYPTO_SUCCESS) { in dca_dsa_verify()
253 if (err != CRYPTO_SUCCESS) { in dca_dsa_verify()
327 if (errno == CRYPTO_SUCCESS) { in dca_dsa_verify_done()
390 int rv = CRYPTO_SUCCESS; in dca_dsainit()
514 return (CRYPTO_SUCCESS); in dca_dsainit()
[all …]
H A Dcryptoadm.c272 dev_list.dl_return_value = CRYPTO_SUCCESS; in get_dev_list()
336 STRUCT_FSET(soft_list, sl_return_value, CRYPTO_SUCCESS); in get_soft_list()
383 &count, &entries)) != CRYPTO_SUCCESS) { in get_dev_info()
403 dev_info.di_return_value = CRYPTO_SUCCESS; in get_dev_info()
472 soft_info.si_return_value = CRYPTO_SUCCESS; in get_soft_info()
527 rv = CRYPTO_SUCCESS; in load_dev_disabled()
552 rv = CRYPTO_SUCCESS; in load_dev_disabled()
604 rv = CRYPTO_SUCCESS; in load_soft_disabled()
630 rv = CRYPTO_SUCCESS; in load_soft_disabled()
683 rv = CRYPTO_SUCCESS; in load_soft_config()
[all …]
/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_sign.c132 if (status != CRYPTO_SUCCESS) in smb_compute_MAC()
143 if (status != CRYPTO_SUCCESS) in smb_compute_MAC()
154 if (status != CRYPTO_SUCCESS) in smb_compute_MAC()
164 if (status != CRYPTO_SUCCESS) in smb_compute_MAC()
175 if (status != CRYPTO_SUCCESS) in smb_compute_MAC()
224 if (status != CRYPTO_SUCCESS) { in smb_rq_sign()
270 if (status != CRYPTO_SUCCESS) { in smb_rq_verify()
/titanic_41/usr/src/uts/common/crypto/core/
H A Dkcf_prov_lib.c121 return (CRYPTO_SUCCESS); in crypto_uio_data()
201 return (CRYPTO_SUCCESS); in crypto_mblk_data()
232 return (CRYPTO_SUCCESS); in crypto_put_output_data()
256 COPY_FROM_DATA, NULL, NULL)) != CRYPTO_SUCCESS) in crypto_get_input_data()
263 COPY_FROM_DATA, NULL, NULL)) != CRYPTO_SUCCESS) in crypto_get_input_data()
272 return (CRYPTO_SUCCESS); in crypto_get_input_data()
320 return (CRYPTO_SUCCESS); in crypto_copy_key_to_ctx()
363 if (rv != CRYPTO_SUCCESS) in crypto_digest_data()
381 if (rv != CRYPTO_SUCCESS) in crypto_digest_data()
393 return (CRYPTO_SUCCESS); in crypto_digest_data()
[all …]
H A Dkcf_cryptoadm.c303 if (rval != CRYPTO_SUCCESS) in crypto_get_dev_list()
309 return (CRYPTO_SUCCESS); in crypto_get_dev_list()
339 return (CRYPTO_SUCCESS); in crypto_get_dev_list()
404 return (CRYPTO_SUCCESS); in crypto_get_soft_list()
448 if (rv != CRYPTO_SUCCESS) in crypto_get_dev_info()
498 return (CRYPTO_SUCCESS); in crypto_get_dev_info()
642 int i, rv = CRYPTO_SUCCESS; in crypto_load_dev_disabled()
652 new_array, &prev_count, &prev_array)) != CRYPTO_SUCCESS) { in crypto_load_dev_disabled()
662 if (rv != CRYPTO_SUCCESS) in crypto_load_dev_disabled()
728 rv = CRYPTO_SUCCESS; in crypto_load_soft_disabled()
[all …]
/titanic_41/usr/src/uts/common/des/
H A Ddes_crypt.c416 return (CRYPTO_SUCCESS); in init_keysched()
484 strength, kmflag)) != CRYPTO_SUCCESS) { in des_common_init()
491 return (CRYPTO_SUCCESS); in des_common_init()
618 int ret = CRYPTO_SUCCESS; in des_encrypt_update()
661 if (ret == CRYPTO_SUCCESS) { in des_encrypt_update()
680 int ret = CRYPTO_SUCCESS; in des_decrypt_update()
723 if (ret == CRYPTO_SUCCESS) { in des_decrypt_update()
756 return (CRYPTO_SUCCESS); in des_encrypt_final()
780 return (CRYPTO_SUCCESS); in des_decrypt_final()
840 strength, crypto_kmflag(req))) != CRYPTO_SUCCESS) { in des_encrypt_atomic()
[all …]
/titanic_41/usr/src/uts/common/crypto/api/
H A Dkcf_object.c57 if (rv != CRYPTO_SUCCESS) in crypto_object_create()
94 if (rv != CRYPTO_SUCCESS) in crypto_object_destroy()
132 if (rv != CRYPTO_SUCCESS) in crypto_object_copy()
172 if (rv != CRYPTO_SUCCESS) in crypto_object_get_attribute_value()
211 if (rv != CRYPTO_SUCCESS) in crypto_object_set_attribute_value()
248 if (rv != CRYPTO_SUCCESS) in crypto_object_get_size()
290 if (rv != CRYPTO_SUCCESS) in crypto_object_find_init()
324 if (rv != CRYPTO_SUCCESS) in crypto_object_find_final()
361 if (rv != CRYPTO_SUCCESS) in crypto_object_find()
H A Dkcf_session.c74 if (rv != CRYPTO_SUCCESS) { in crypto_session_open()
78 return (CRYPTO_SUCCESS); in crypto_session_open()
118 return (CRYPTO_SUCCESS); in crypto_session_close()
137 if (rv != CRYPTO_SUCCESS) in crypto_session_login()
173 if (rv != CRYPTO_SUCCESS) in crypto_session_logout()
/titanic_41/usr/src/uts/common/crypto/spi/
H A Dkcf_spi.c242 if ((ret = init_prov_mechs(info, prov_desc)) != CRYPTO_SUCCESS) in crypto_register_provider()
249 if ((ret = kcf_prov_tab_add_provider(prov_desc)) != CRYPTO_SUCCESS) { in crypto_register_provider()
286 if (ret != CRYPTO_SUCCESS) in crypto_register_provider()
308 if (ret != CRYPTO_SUCCESS) in crypto_register_provider()
364 return (CRYPTO_SUCCESS); in crypto_register_provider()
373 if (ret != CRYPTO_SUCCESS && sys_shutdown == 0) { in crypto_register_provider()
449 int ret = CRYPTO_SUCCESS; in crypto_unregister_provider()
499 CRYPTO_SUCCESS) { in crypto_unregister_provider()
566 if (ret != CRYPTO_SUCCESS && sys_shutdown == 0) { in crypto_unregister_provider()
703 KCF_PROV_JOB_RELE_STAT(sreq->sn_mp, (error != CRYPTO_SUCCESS)); in crypto_op_notification()
[all …]
/titanic_41/usr/src/uts/common/fs/smbsrv/
H A Dsmb_sign_kcf.c58 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb_md5_init()
78 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb_md5_update()
98 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb_md5_final()
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/crypto/hash_provider/
H A Dhash_kef_generic.c51 if (rv != CRYPTO_SUCCESS) { in k5_ef_hash()
65 if (rv != CRYPTO_SUCCESS) { in k5_ef_hash()
80 if (rv != CRYPTO_SUCCESS) { in k5_ef_hash()
136 if (rv != CRYPTO_SUCCESS) { in k5_ef_mac()
/titanic_41/usr/src/common/crypto/modes/
H A Dcbc.c66 return (CRYPTO_SUCCESS); in cbc_encrypt_contiguous_blocks()
161 return (CRYPTO_SUCCESS); in cbc_encrypt_contiguous_blocks()
193 return (CRYPTO_SUCCESS); in cbc_decrypt_contiguous_blocks()
271 return (CRYPTO_SUCCESS); in cbc_decrypt_contiguous_blocks()
278 return (CRYPTO_SUCCESS); in cbc_decrypt_contiguous_blocks()
302 return (CRYPTO_SUCCESS); in cbc_init_ctx()

1234