Home
last modified time | relevance | path

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

1234

/illumos-gate/usr/src/uts/common/crypto/io/
H A Dskein_mod.c219 return (CRYPTO_SUCCESS); in skein_get_digest_bitlen()
312 return (CRYPTO_SUCCESS); in skein_digest_update_uio()
384 return (CRYPTO_SUCCESS); in skein_digest_final_uio()
428 return (CRYPTO_SUCCESS); in skein_digest_update_mblk()
481 return (CRYPTO_SUCCESS); in skein_digest_final_mblk()
500 int error = CRYPTO_SUCCESS; in skein_digest_init()
513 if (error != CRYPTO_SUCCESS) in skein_digest_init()
517 return (CRYPTO_SUCCESS); in skein_digest_init()
534 int error = CRYPTO_SUCCESS; in skein_digest()
546 if (error != CRYPTO_SUCCESS) { in skein_digest()
[all …]
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.c271 int rv = CRYPTO_SUCCESS; in aes_check_mech_param()
342 return (CRYPTO_SUCCESS); in init_keysched()
394 != CRYPTO_SUCCESS) in aes_common_init()
399 if (rv != CRYPTO_SUCCESS) { in aes_common_init()
406 return (CRYPTO_SUCCESS); in aes_common_init()
468 if (ret != CRYPTO_SUCCESS) { in aes_encrypt()
488 if (ret != CRYPTO_SUCCESS) { in aes_encrypt()
510 if (ret != CRYPTO_SUCCESS) { in aes_encrypt()
595 if (ret != CRYPTO_SUCCESS) { in aes_decrypt()
610 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 Dsha1_mod.c258 return (CRYPTO_SUCCESS); in sha1_digest_init()
317 return (CRYPTO_SUCCESS); in sha1_digest_update_uio()
414 return (CRYPTO_SUCCESS); in sha1_digest_final_uio()
462 return (CRYPTO_SUCCESS); in sha1_digest_update_mblk()
545 return (CRYPTO_SUCCESS); in sha1_digest_final_mblk()
553 int ret = CRYPTO_SUCCESS; in sha1_digest()
588 if (ret != CRYPTO_SUCCESS) { in sha1_digest()
619 if (ret == CRYPTO_SUCCESS) { in sha1_digest()
635 int ret = CRYPTO_SUCCESS; in sha1_digest_update()
668 int ret = CRYPTO_SUCCESS; in sha1_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 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 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 Ddprov.c1853 &softc->ds_prov_handle)) != CRYPTO_SUCCESS) { in dprov_attach()
1891 softc->ds_prov_handle)) != CRYPTO_SUCCESS) { in dprov_detach()
4270 return (CRYPTO_SUCCESS); in dprov_alloc_context()
4277 return (CRYPTO_SUCCESS); in dprov_free_context()
4320 return (CRYPTO_SUCCESS); in dprov_free_context()
4800 rv = CRYPTO_SUCCESS; in dprov_copyin_mechanism()
4824 rv = CRYPTO_SUCCESS; in dprov_copyin_mechanism()
4843 return (CRYPTO_SUCCESS); in dprov_copyout_mechanism()
4860 return (CRYPTO_SUCCESS); in dprov_free_mechanism()
4875 return (CRYPTO_SUCCESS); in dprov_free_mechanism()
[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 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()
511 rv = CRYPTO_SUCCESS; in load_dev_disabled()
531 rv = CRYPTO_SUCCESS; in load_dev_disabled()
556 rv = CRYPTO_SUCCESS; in load_dev_disabled()
589 rv = CRYPTO_SUCCESS; in load_soft_disabled()
611 rv = CRYPTO_SUCCESS; in load_soft_disabled()
[all …]
H A Dsha2_mod.c287 return (CRYPTO_SUCCESS); in sha2_digest_init()
344 return (CRYPTO_SUCCESS); in sha2_digest_update_uio()
447 return (CRYPTO_SUCCESS); in sha2_digest_final_uio()
495 return (CRYPTO_SUCCESS); in sha2_digest_update_mblk()
581 return (CRYPTO_SUCCESS); in sha2_digest_final_mblk()
589 int ret = CRYPTO_SUCCESS; in sha2_digest()
645 if (ret != CRYPTO_SUCCESS) { in sha2_digest()
676 if (ret == CRYPTO_SUCCESS) in sha2_digest()
691 int ret = CRYPTO_SUCCESS; in sha2_digest_update()
724 int ret = CRYPTO_SUCCESS; in sha2_digest_final()
[all …]
H A Dcrypto.c268 rctl_chk = B_FALSE, CRYPTO_SUCCESS) : \
878 if (rv != CRYPTO_SUCCESS) { in get_function_list()
914 rv = CRYPTO_SUCCESS; in get_function_list()
974 rv = CRYPTO_SUCCESS; in get_mechanism_number()
1013 STRUCT_FSET(get_list, ml_return_value, CRYPTO_SUCCESS); in get_mechanism_list()
1128 if (rv != CRYPTO_SUCCESS) { in get_all_mechanism_info()
1157 if (req_count == 0 || num_mech_infos == 0 || rv != CRYPTO_SUCCESS || in get_all_mechanism_info()
1199 if (rval != CRYPTO_SUCCESS) in crypto_get_provider_list()
1231 return (CRYPTO_SUCCESS); in crypto_get_provider_list()
1264 if (rv != CRYPTO_SUCCESS) { in get_provider_list()
[all …]
H A Ddca_rsa.c134 CRYPTO_SIGNATURE_LEN_RANGE, CRYPTO_SUCCESS)) != in dca_rsastart()
135 CRYPTO_SUCCESS) in dca_rsastart()
209 if (errno == CRYPTO_SUCCESS) { in dca_rsadone()
236 if (errno != CRYPTO_SUCCESS && in dca_rsadone()
254 CRYPTO_SUCCESS) in dca_rsadone()
297 if (errno == CRYPTO_SUCCESS) { in dca_rsaverifydone()
329 if (errno != CRYPTO_SUCCESS && in dca_rsaverifydone()
347 CRYPTO_SUCCESS) in dca_rsaverifydone()
459 &attrdata, &(reqp->dr_ctx.modlen))) != CRYPTO_SUCCESS) { in dca_rsainit()
478 (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.c96 if (err != CRYPTO_SUCCESS) { in dca_dsa_sign()
149 if (errno == CRYPTO_SUCCESS) { in dca_dsa_sign_done()
165 if (errno != CRYPTO_SUCCESS) { in dca_dsa_sign_done()
172 if (errno != CRYPTO_SUCCESS) { in dca_dsa_sign_done()
236 if (err != CRYPTO_SUCCESS) { in dca_dsa_verify()
243 if (err != CRYPTO_SUCCESS) { in dca_dsa_verify()
251 if (err != CRYPTO_SUCCESS) { in dca_dsa_verify()
325 if (errno == CRYPTO_SUCCESS) { in dca_dsa_verify_done()
388 int rv = CRYPTO_SUCCESS; in dca_dsainit()
512 return (CRYPTO_SUCCESS); in dca_dsainit()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_sign_kcf.c70 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb_md5_init()
90 if (rv != CRYPTO_SUCCESS) { in smb_md5_update()
115 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb_md5_final()
146 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb2_hmac_init()
166 if (rv != CRYPTO_SUCCESS) { in smb2_hmac_update()
193 if (rv == CRYPTO_SUCCESS) in smb2_hmac_final()
196 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb2_hmac_final()
232 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb2_hmac_one()
263 return (rv == CRYPTO_SUCCESS ? 0 : -1); in smb3_cmac_init()
283 if (rv != CRYPTO_SUCCESS) { in smb3_cmac_update()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dnsmb_sign_kcf.c77 return (rv == CRYPTO_SUCCESS ? 0 : -1); in nsmb_md5_init()
97 if (rv != CRYPTO_SUCCESS) { in nsmb_md5_update()
122 return (rv == CRYPTO_SUCCESS ? 0 : -1); in nsmb_md5_final()
153 return (rv == CRYPTO_SUCCESS ? 0 : -1); in nsmb_hmac_init()
173 if (rv != CRYPTO_SUCCESS) { in nsmb_hmac_update()
200 if (rv == CRYPTO_SUCCESS) in nsmb_hmac_final()
203 return (rv == CRYPTO_SUCCESS ? 0 : -1); in nsmb_hmac_final()
239 return (rv == CRYPTO_SUCCESS ? 0 : -1); in nsmb_hmac_one()
270 return (rv == CRYPTO_SUCCESS ? 0 : -1); in nsmb_cmac_init()
290 if (rv != CRYPTO_SUCCESS) { in nsmb_cmac_update()
[all …]
/illumos-gate/usr/src/test/crypto-tests/tests/common/
H A Dtestfuncs.c152 if ((ret = get_mech_info(crypto_op)) != CRYPTO_SUCCESS) { in test_setup()
157 if ((ret = get_hsession_by_mech(crypto_op)) != CRYPTO_SUCCESS) { in test_setup()
163 return (CRYPTO_SUCCESS); in test_setup()
176 if ((ret = test_setup(args, funcs, &crypto_op)) != CRYPTO_SUCCESS) { in test_multi()
214 if ((ret = funcs->tf_init(crypto_op)) != CRYPTO_SUCCESS) { in test_multi()
227 if (ret != CRYPTO_SUCCESS) { in test_multi()
239 if (ret != CRYPTO_SUCCESS) in test_multi()
276 if ((ret = test_setup(args, funcs, &crypto_op)) != CRYPTO_SUCCESS) { in test_single()
281 if ((ret = funcs->tf_init(crypto_op)) != CRYPTO_SUCCESS) { in test_single()
286 if ((ret = funcs->tf_single(crypto_op)) != CRYPTO_SUCCESS) in test_single()
[all …]
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_prov_lib.c58 COPY_FROM_DATA, NULL, NULL)) != CRYPTO_SUCCESS) in crypto_get_input_data()
65 COPY_FROM_DATA, NULL, NULL)) != CRYPTO_SUCCESS) in crypto_get_input_data()
74 return (CRYPTO_SUCCESS); in crypto_get_input_data()
122 return (CRYPTO_SUCCESS); in crypto_copy_key_to_ctx()
165 if (rv != CRYPTO_SUCCESS) in crypto_digest_data()
183 if (rv != CRYPTO_SUCCESS) in crypto_digest_data()
195 return (CRYPTO_SUCCESS); in crypto_digest_data()
282 return (CRYPTO_SUCCESS); in crypto_update_uio()
337 return (CRYPTO_SUCCESS); in crypto_update_mp()
355 return (CRYPTO_SUCCESS); in crypto_get_key_attr()
H A Dkcf_cryptoadm.c312 if (rval != CRYPTO_SUCCESS) in crypto_get_dev_list()
318 return (CRYPTO_SUCCESS); in crypto_get_dev_list()
348 return (CRYPTO_SUCCESS); in crypto_get_dev_list()
413 return (CRYPTO_SUCCESS); in crypto_get_soft_list()
457 if (rv != CRYPTO_SUCCESS) in crypto_get_dev_info()
507 return (CRYPTO_SUCCESS); in crypto_get_dev_info()
651 int i, rv = CRYPTO_SUCCESS; in crypto_load_dev_disabled()
661 new_array, &prev_count, &prev_array)) != CRYPTO_SUCCESS) { in crypto_load_dev_disabled()
671 if (rv != CRYPTO_SUCCESS) in crypto_load_dev_disabled()
737 rv = CRYPTO_SUCCESS; in crypto_load_soft_disabled()
[all …]
/illumos-gate/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 …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dhkdf.c59 if (ret != CRYPTO_SUCCESS) in hkdf_sha512_extract()
116 if (ret != CRYPTO_SUCCESS) in hkdf_sha512_expand()
120 if (ret != CRYPTO_SUCCESS) in hkdf_sha512_expand()
124 if (ret != CRYPTO_SUCCESS) in hkdf_sha512_expand()
128 if (ret != CRYPTO_SUCCESS) in hkdf_sha512_expand()
136 if (ret != CRYPTO_SUCCESS) in hkdf_sha512_expand()
/illumos-gate/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()
/illumos-gate/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 …]

1234