Home
last modified time | relevance | path

Searched refs:cleanup (Results 1 – 25 of 41) sorted by relevance

12

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_import_point.c24 …f ((err = mp_read_unsigned_bin(x, (unsigned char *)in+1, size)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
26 …f ((err = mp_read_unsigned_bin(y, (unsigned char *)in+1+size, size)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
31 …f ((err = mp_read_unsigned_bin(x, (unsigned char *)in+1, size)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
33 …f ((err = mp_sqr(x, t1)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
34 …f ((err = mp_mulmod(t1, x, prime, t1)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
36 …f ((err = mp_mulmod(a, x, prime, t2)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
37 …f ((err = mp_add(t1, t2, t1)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
39 …f ((err = mp_add(t1, b, t1)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
41 …f ((err = mp_sqrtmod_prime(t1, prime, t2)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
52 goto cleanup; in ltc_ecc_import_point()
[all …]
A Dltc_ecc_is_point.c27 if ((err = mp_sqr(y, t1)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
30 if ((err = mp_sqr(x, t2)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
31 if ((err = mp_mod(t2, prime, t2)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
32 if ((err = mp_mul(x, t2, t2)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
35 if ((err = mp_sub(t1, t2, t1)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
38 if ((err = mp_submod(prime, a, prime, t2)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
39 if ((err = mp_mulmod(t2, x, prime, t2)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
40 if ((err = mp_addmod(t1, t2, prime, t1)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
44 if ((err = mp_add(t1, prime, t1)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
47 if ((err = mp_sub(t1, prime, t1)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
[all …]
A Dltc_ecc_is_point_at_infinity.c33 if ((err = mp_mulmod(P->y, P->y, modulus, y2)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point_at_infinity()
36 if ((err = mp_mulmod(P->x, P->x, modulus, x3)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point_at_infinity()
37 if ((err = mp_mulmod(P->x, x3, modulus, x3)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point_at_infinity()
47 cleanup: in ltc_ecc_is_point_at_infinity()
A Decc_make_key.c65 goto cleanup; in ecc_generate_key()
69 cleanup: in ecc_generate_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_generate_pqg.c114 if ((err = mp_2expt(t2L1, L-1)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
116 if ((err = mp_2expt(t2N1, N-1)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
118 if ((err = mp_2expt(t2seedlen, seedbytes*8)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
126 if ((err = hash_memory(hash, sbuf, seedbytes, digest, &i)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
127 if ((err = mp_read_unsigned_bin(U, digest, outbytes)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
128 if ((err = mp_mod(U, t2N1, U)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
129 if ((err = mp_add(t2N1, U, q)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
131 if ((err = mp_prime_is_prime(q, mr_tests_q, &res)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
189 cleanup: in s_dsa_make_params()
222 goto cleanup; in dsa_generate_pqg()
[all …]
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Drsa_internal.c114 goto cleanup; in mbedtls_rsa_deduce_primes()
186 cleanup: in mbedtls_rsa_deduce_primes()
232 cleanup: in mbedtls_rsa_deduce_private_exponent()
259 goto cleanup; in mbedtls_rsa_validate_crt()
269 goto cleanup; in mbedtls_rsa_validate_crt()
279 goto cleanup; in mbedtls_rsa_validate_crt()
312 cleanup: in mbedtls_rsa_validate_crt()
357 goto cleanup; in mbedtls_rsa_validate_params()
364 goto cleanup; in mbedtls_rsa_validate_params()
438 cleanup: in mbedtls_rsa_validate_params()
[all …]
A Dpkcs11.c56 goto cleanup; in mbedtls_pkcs11_x509_cert_bind()
63 goto cleanup; in mbedtls_pkcs11_x509_cert_bind()
70 goto cleanup; in mbedtls_pkcs11_x509_cert_bind()
77 goto cleanup; in mbedtls_pkcs11_x509_cert_bind()
83 goto cleanup; in mbedtls_pkcs11_x509_cert_bind()
88 cleanup: in mbedtls_pkcs11_x509_cert_bind()
105 goto cleanup; in mbedtls_pkcs11_priv_key_bind()
108 goto cleanup; in mbedtls_pkcs11_priv_key_bind()
115 cleanup: in mbedtls_pkcs11_priv_key_bind()
A Dssl_ticket.c231 goto cleanup; in mbedtls_ssl_ticket_write()
240 goto cleanup; in mbedtls_ssl_ticket_write()
261 goto cleanup; in mbedtls_ssl_ticket_write()
266 goto cleanup; in mbedtls_ssl_ticket_write()
271 cleanup: in mbedtls_ssl_ticket_write()
325 goto cleanup; in mbedtls_ssl_ticket_parse()
332 goto cleanup; in mbedtls_ssl_ticket_parse()
341 goto cleanup; in mbedtls_ssl_ticket_parse()
356 goto cleanup; in mbedtls_ssl_ticket_parse()
361 goto cleanup; in mbedtls_ssl_ticket_parse()
[all …]
A Dentropy.c213 goto cleanup; in entropy_update()
217 goto cleanup; in entropy_update()
222 goto cleanup; in entropy_update()
226 goto cleanup; in entropy_update()
230 cleanup: in entropy_update()
300 cleanup: in entropy_gather_internal()
625 goto cleanup; in mbedtls_entropy_source_self_test()
627 goto cleanup; in mbedtls_entropy_source_self_test()
631 goto cleanup; in mbedtls_entropy_source_self_test()
639 cleanup: in mbedtls_entropy_source_self_test()
[all …]
A Decjpake.c124 cleanup: in mbedtls_ecjpake_setup()
226 cleanup: in ecjpake_hash()
293 cleanup: in ecjpake_zkp_read()
354 cleanup: in ecjpake_zkp_write()
395 cleanup: in ecjpake_kkp_read()
432 cleanup: in ecjpake_kkp_write()
465 cleanup: in ecjpake_kkpp_read()
499 cleanup: in ecjpake_kkpp_write()
555 cleanup: in ecjpake_ecp_add3()
615 cleanup: in mbedtls_ecjpake_read_round_two()
[all …]
A Dnist_kw.c224 goto cleanup; in mbedtls_nist_kw_wrap()
237 goto cleanup; in mbedtls_nist_kw_wrap()
249 goto cleanup; in mbedtls_nist_kw_wrap()
263 cleanup: in mbedtls_nist_kw_wrap()
317 goto cleanup; in unwrap()
332 cleanup: in unwrap()
379 goto cleanup; in mbedtls_nist_kw_unwrap()
387 goto cleanup; in mbedtls_nist_kw_unwrap()
468 goto cleanup; in mbedtls_nist_kw_unwrap()
476 goto cleanup; in mbedtls_nist_kw_unwrap()
[all …]
A Dpkcs5.c249 goto cleanup; in mbedtls_pkcs5_pbkdf2_hmac()
252 goto cleanup; in mbedtls_pkcs5_pbkdf2_hmac()
255 goto cleanup; in mbedtls_pkcs5_pbkdf2_hmac()
258 goto cleanup; in mbedtls_pkcs5_pbkdf2_hmac()
267 goto cleanup; in mbedtls_pkcs5_pbkdf2_hmac()
270 goto cleanup; in mbedtls_pkcs5_pbkdf2_hmac()
273 goto cleanup; in mbedtls_pkcs5_pbkdf2_hmac()
292 cleanup: in mbedtls_pkcs5_pbkdf2_hmac()
A Dmd.c679 goto cleanup; in mbedtls_md_file()
682 goto cleanup; in mbedtls_md_file()
693 cleanup: in mbedtls_md_file()
738 goto cleanup; in mbedtls_md_hmac_starts()
741 goto cleanup; in mbedtls_md_hmac_starts()
743 cleanup: in mbedtls_md_hmac_starts()
810 goto cleanup; in mbedtls_md_hmac()
813 goto cleanup; in mbedtls_md_hmac()
815 goto cleanup; in mbedtls_md_hmac()
817 goto cleanup; in mbedtls_md_hmac()
[all …]
A Decp.c192 cleanup: in ecp_drbg_seed()
255 cleanup: in ecp_drbg_seed()
791 cleanup: in mbedtls_ecp_copy()
818 cleanup: in mbedtls_ecp_set_zero()
866 cleanup: in mbedtls_ecp_point_read_string()
941 cleanup: in mbedtls_ecp_point_write_binary()
1003 cleanup: in mbedtls_ecp_point_read_binary()
1202 cleanup: in ecp_modp()
1240 cleanup: in mbedtls_mpi_mul_mod()
1267 cleanup: in mbedtls_mpi_sub_mod()
[all …]
A Decdsa.c242 cleanup: in derive_mpi()
377 cleanup: in ecdsa_sign_restartable()
543 cleanup: in ecdsa_sign_det_restartable()
639 goto cleanup; in ecdsa_verify_restartable()
675 goto cleanup; in ecdsa_verify_restartable()
690 goto cleanup; in ecdsa_verify_restartable()
693 cleanup: in ecdsa_verify_restartable()
789 cleanup: in mbedtls_ecdsa_write_signature_restartable()
868 goto cleanup; in mbedtls_ecdsa_read_signature_restartable()
875 goto cleanup; in mbedtls_ecdsa_read_signature_restartable()
[all …]
A Dchachapoly.c141 goto cleanup; in mbedtls_chachapoly_starts()
152 goto cleanup; in mbedtls_chachapoly_starts()
164 cleanup: in mbedtls_chachapoly_starts()
292 goto cleanup; in chachapoly_crypt_and_tag()
296 goto cleanup; in chachapoly_crypt_and_tag()
300 goto cleanup; in chachapoly_crypt_and_tag()
304 cleanup: in chachapoly_crypt_and_tag()
A Drsa.c130 cleanup: in mbedtls_rsa_import_raw()
378 cleanup: in mbedtls_rsa_export_raw()
617 cleanup: in mbedtls_rsa_gen_key()
752 cleanup: in mbedtls_rsa_public()
825 cleanup: in rsa_prepare_blinding()
1047 cleanup: in mbedtls_rsa_private()
1481 cleanup: in mbedtls_rsa_rsaes_oaep_decrypt()
1531 cleanup: in mbedtls_rsa_rsaes_pkcs1_v15_decrypt()
1956 cleanup: in mbedtls_rsa_rsassa_pkcs1_v15_sign()
2257 cleanup: in mbedtls_rsa_rsassa_pkcs1_v15_verify()
[all …]
A Dbignum.c301 cleanup: in mbedtls_mpi_copy()
334 cleanup: in mbedtls_mpi_lset()
380 cleanup: in mbedtls_mpi_set_bit()
526 cleanup: in mbedtls_mpi_read_string()
567 cleanup: in mpi_write_hlp()
652 cleanup: in mbedtls_mpi_write_string()
736 cleanup: in mbedtls_mpi_write_file()
849 cleanup: in mbedtls_mpi_read_binary_le()
885 cleanup: in mbedtls_mpi_read_binary()
1026 cleanup: in mbedtls_mpi_shift_l()
[all …]
A Ddhm.c116 cleanup: in dhm_check_range()
163 cleanup: in dhm_random_below()
201 cleanup: in dhm_make_common()
223 goto cleanup; in mbedtls_dhm_make_params()
252 cleanup: in mbedtls_dhm_make_params()
319 goto cleanup; in mbedtls_dhm_make_public()
323 cleanup: in mbedtls_dhm_make_public()
391 cleanup: in dhm_update_blinding()
445 cleanup: in mbedtls_dhm_calc_secret()
A Dpkparse.c414 cleanup: in pk_group_id_from_group()
437 goto cleanup; in pk_group_id_from_specified()
441 cleanup: in pk_group_id_from_specified()
756 goto cleanup; in pk_parse_key_pkcs1_der()
762 goto cleanup; in pk_parse_key_pkcs1_der()
768 goto cleanup; in pk_parse_key_pkcs1_der()
797 goto cleanup; in pk_parse_key_pkcs1_der()
802 goto cleanup; in pk_parse_key_pkcs1_der()
807 goto cleanup; in pk_parse_key_pkcs1_der()
814 goto cleanup; in pk_parse_key_pkcs1_der()
[all …]
A Dssl_tls13_keys.c317 goto cleanup; in mbedtls_ssl_tls1_3_evolve_secret()
338 goto cleanup; in mbedtls_ssl_tls1_3_evolve_secret()
342 cleanup: in mbedtls_ssl_tls1_3_evolve_secret()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_make_key.c33 if ((err = rand_prime( p, size/2, prng, wprng)) != CRYPT_OK) { goto cleanup; } in s_rsa_make_key()
34 … if ((err = mp_sub_d( p, 1, tmp1)) != CRYPT_OK) { goto cleanup; } /* tmp1 = p-1 */ in s_rsa_make_key()
35 …if ((err = mp_gcd( tmp1, e, tmp2)) != CRYPT_OK) { goto cleanup; } /* tmp2 = gcd(p-1… in s_rsa_make_key()
40 if ((err = rand_prime( q, size/2, prng, wprng)) != CRYPT_OK) { goto cleanup; } in s_rsa_make_key()
41 … if ((err = mp_sub_d( q, 1, tmp1)) != CRYPT_OK) { goto cleanup; } /* tmp1 = q-1 */ in s_rsa_make_key()
42 …if ((err = mp_gcd( tmp1, e, tmp2)) != CRYPT_OK) { goto cleanup; } /* tmp2 = gcd(q-1, e)… in s_rsa_make_key()
46 …if ((err = mp_sub_d( p, 1, tmp2)) != CRYPT_OK) { goto cleanup; } /* tmp2 = p-1 … in s_rsa_make_key()
48 …if ((err = mp_lcm( tmp1, tmp2, tmp1)) != CRYPT_OK) { goto cleanup; } /* tmp1 = lcm(… in s_rsa_make_key()
75 goto cleanup; in s_rsa_make_key()
78 cleanup: in s_rsa_make_key()
/optee_os-3.20.0/core/drivers/
A Dzynqmp_huk.c127 goto cleanup; in tee_otp_get_hw_unique_key()
141 goto cleanup; in tee_otp_get_hw_unique_key()
156 goto cleanup; in tee_otp_get_hw_unique_key()
172 goto cleanup; in tee_otp_get_hw_unique_key()
183 goto cleanup; in tee_otp_get_hw_unique_key()
191 goto cleanup; in tee_otp_get_hw_unique_key()
202 goto cleanup; in tee_otp_get_hw_unique_key()
208 goto cleanup; in tee_otp_get_hw_unique_key()
224 cleanup: in tee_otp_get_hw_unique_key()
A Dversal_huk.c309 goto cleanup; in tee_otp_get_hw_unique_key()
314 goto cleanup; in tee_otp_get_hw_unique_key()
320 goto cleanup; in tee_otp_get_hw_unique_key()
323 cleanup: in tee_otp_get_hw_unique_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Drand_bn.c30 goto cleanup; in rand_bn_bits()
35 if ((res = mp_read_unsigned_bin(N, buf, bytes)) != CRYPT_OK) goto cleanup; in rand_bn_bits()
39 cleanup: in rand_bn_bits()

Completed in 43 milliseconds

12