Home
last modified time | relevance | path

Searched refs:done (Results 1 – 25 of 63) sorted by relevance

123

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_projective_add_point.c49 goto done; in ltc_ecc_projective_add_point()
56 goto done; in ltc_ecc_projective_add_point()
65 if ((err = mp_sub(modulus, Q->y, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
69 goto done; in ltc_ecc_projective_add_point()
73 if ((err = mp_copy(P->x, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
74 if ((err = mp_copy(P->y, y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
75 if ((err = mp_copy(P->z, z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
80 if ((err = mp_sqr(Q->z, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
81 if ((err = mp_montgomery_reduce(t1, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
83 if ((err = mp_mul(t1, x, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
[all …]
A Dltc_ecc_projective_dbl_point.c62 if ((err = ltc_ecc_copy_point(P, R)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
69 goto done; in ltc_ecc_projective_dbl_point()
73 if ((err = mp_sqr(R->z, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
74 if ((err = mp_montgomery_reduce(t1, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
76 if ((err = mp_mul(R->z, R->y, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
77 if ((err = mp_montgomery_reduce(R->z, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
79 if ((err = mp_add(R->z, R->z, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
81 if ((err = mp_sub(R->z, modulus, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
86 if ((err = mp_sub(R->x, t1, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
88 if ((err = mp_add(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
[all …]
A Dltc_ecc_map.c45 if ((err = mp_montgomery_reduce(P->z, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
48 if ((err = mp_invmod(P->z, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
51 if ((err = mp_sqr(t1, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
52 if ((err = mp_mod(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
53 if ((err = mp_mul(t1, t2, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
54 if ((err = mp_mod(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
57 if ((err = mp_mul(P->x, t2, P->x)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
58 if ((err = mp_montgomery_reduce(P->x, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
59 if ((err = mp_mul(P->y, t1, P->y)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
60 if ((err = mp_montgomery_reduce(P->y, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
[all …]
A Dltc_ecc_mulmod.c83 if ((err = ltc_ecc_copy_point(G, tG)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
85 if ((err = mp_mulmod(G->x, mu, modulus, tG->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
86 if ((err = mp_mulmod(G->y, mu, modulus, tG->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
87 if ((err = mp_mulmod(G->z, mu, modulus, tG->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
94 if ((err = ltc_mp.ecc_ptdbl(tG, M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
95 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
96 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
134 if ((err = ltc_mp.ecc_ptdbl(R, R, ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
146 if ((err = ltc_ecc_copy_point(M[bitbuf-8], R)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
178 if ((err = ltc_ecc_copy_point(tG, R)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
[all …]
A Dltc_ecc_mulmod_timing.c82 if ((err = mp_mulmod(G->x, mu, modulus, tG->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
83 if ((err = mp_mulmod(G->y, mu, modulus, tG->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
84 if ((err = mp_mulmod(G->z, mu, modulus, tG->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
90 if ((err = ltc_ecc_copy_point(tG, M[0])) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
92 if ((err = ltc_mp.ecc_ptdbl(tG, M[1], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
118 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
119 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
126 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
127 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
136 if ((err = ltc_ecc_copy_point(M[0], R)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
[all …]
A Decc_import.c60 if ((err = ecc_set_curve_by_size(key_size, key)) != CRYPT_OK) { goto done; } in ecc_import_ex()
62 if ((err = ecc_set_curve(cu, key)) != CRYPT_OK) { goto done; } in ecc_import_ex()
75 goto done; in ecc_import_ex()
86 goto done; in ecc_import_ex()
91 goto done; in ecc_import_ex()
95 if ((err = mp_set(key->pubkey.z, 1)) != CRYPT_OK) { goto done; } in ecc_import_ex()
98 if ((err = ltc_ecc_verify_key(key)) != CRYPT_OK) { goto done; } in ecc_import_ex()
103 done: in ecc_import_ex()
A Decc_shared_secret.c55 ….ecc_ptmul(private_key->k, &public_key->pubkey, result, a, prime, 1)) != CRYPT_OK) { goto done; } in ecc_shared_secret()
61 goto done; in ecc_shared_secret()
64 …unsigned_bin(result->x, out + (x - mp_unsigned_bin_size(result->x)))) != CRYPT_OK) { goto done; } in ecc_shared_secret()
68 done: in ecc_shared_secret()
A Dltc_ecc_is_point_at_infinity.c37 if ((err = mp_init_multi(&x3, &y2, NULL)) != CRYPT_OK) goto done; in ltc_ecc_is_point_at_infinity()
56 done: in ltc_ecc_is_point_at_infinity()
/optee_os/core/kernel/
A Dwait_queue.c63 wqe->done = false; in wq_wait_init_condvar()
78 unsigned done; in wq_wait_final() local
86 done = wqe->done; in wq_wait_final()
87 if (done) in wq_wait_final()
91 } while (!done); in wq_wait_final()
116 if (wqe->done) in wq_wake_next()
126 wqe->done = true; in wq_wake_next()
/optee_os/core/lib/libtomcrypt/src/mac/xcbc/
A Dxcbc_memory.c53 goto done; in xcbc_memory()
57 goto done; in xcbc_memory()
61 done: in xcbc_memory()
A Dxcbc_init.c71 goto done; in xcbc_init()
91 done: in xcbc_init()
92 cipher_descriptor[cipher]->done(skey); in xcbc_init()
/optee_os/core/lib/libtomcrypt/src/mac/f9/
A Df9_memory.c53 goto done; in f9_memory()
57 goto done; in f9_memory()
61 done: in f9_memory()
A Df9_init.c45 goto done; in f9_init()
60 done: in f9_init()
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_shared_secret.c55 goto done; in dsa_shared_secret()
58 …to_unsigned_bin(res, out + (x - mp_unsigned_bin_size(res)))) != CRYPT_OK) { goto done; } in dsa_shared_secret()
62 done: in dsa_shared_secret()
/optee_os/core/lib/libtomcrypt/src/modes/xts/
A Dxts_done.c24 cipher_descriptor[xts->cipher]->done(&xts->key1); in xts_done()
25 cipher_descriptor[xts->cipher]->done(&xts->key2); in xts_done()
/optee_os/lib/libutee/arch/arm/gprof/
A Dgprof.c354 goto done; in __mcount_internal()
378 goto done; in __mcount_internal()
384 goto done; in __mcount_internal()
409 goto done; in __mcount_internal()
426 goto done; in __mcount_internal()
429 done: in __mcount_internal()
/optee_os/lib/libmbedtls/mbedtls/library/
A Daesni.c50 static int done = 0; in mbedtls_aesni_has_support() local
53 if( ! done ) in mbedtls_aesni_has_support()
60 done = 1; in mbedtls_aesni_has_support()
/optee_os/core/lib/libtomcrypt/src/modes/f8/
A Df8_start.c80 cipher_descriptor[f8->cipher]->done(&f8->key); in f8_start()
87 cipher_descriptor[f8->cipher]->done(&f8->key); in f8_start()
/optee_os/core/lib/libtomcrypt/src/mac/hmac/
A Dhmac_done.c60 if ((err = hash_descriptor[hash]->done(&hmac->md, isha)) != CRYPT_OK) { in hmac_done()
79 if ((err = hash_descriptor[hash]->done(&hmac->md, buf)) != CRYPT_OK) { in hmac_done()
/optee_os/core/lib/libtomcrypt/src/modes/cbc/
A Dcbc_done.c31 cipher_descriptor[cbc->cipher]->done(&cbc->key); in cbc_done()
/optee_os/core/lib/libtomcrypt/src/modes/cfb/
A Dcfb_done.c31 cipher_descriptor[cfb->cipher]->done(&cfb->key); in cfb_done()
/optee_os/core/lib/libtomcrypt/src/modes/ctr/
A Dctr_done.c31 cipher_descriptor[ctr->cipher]->done(&ctr->key); in ctr_done()
/optee_os/core/lib/libtomcrypt/src/modes/lrw/
A Dlrw_done.c33 cipher_descriptor[lrw->cipher]->done(&lrw->key); in lrw_done()
/optee_os/core/lib/libtomcrypt/src/modes/ofb/
A Dofb_done.c31 cipher_descriptor[ofb->cipher]->done(&ofb->key); in ofb_done()
/optee_os/core/lib/libtomcrypt/src/modes/ecb/
A Decb_done.c31 cipher_descriptor[ecb->cipher]->done(&ecb->key); in ecb_done()

Completed in 25 milliseconds

123