Home
last modified time | relevance | path

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

123

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_projective_add_point.c42 goto done; in ltc_ecc_projective_add_point()
49 goto done; in ltc_ecc_projective_add_point()
58 if ((err = mp_sub(modulus, Q->y, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
62 goto done; in ltc_ecc_projective_add_point()
66 if ((err = mp_copy(P->x, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
67 if ((err = mp_copy(P->y, y)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
68 if ((err = mp_copy(P->z, z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
73 if ((err = mp_sqr(Q->z, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
74 if ((err = mp_montgomery_reduce(t1, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
76 if ((err = mp_mul(t1, x, x)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_add_point()
[all …]
A Dltc_ecc_projective_dbl_point.c55 if ((err = ltc_ecc_copy_point(P, R)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
62 goto done; in ltc_ecc_projective_dbl_point()
66 if ((err = mp_sqr(R->z, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
67 if ((err = mp_montgomery_reduce(t1, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
69 if ((err = mp_mul(R->z, R->y, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
70 if ((err = mp_montgomery_reduce(R->z, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
72 if ((err = mp_add(R->z, R->z, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
74 if ((err = mp_sub(R->z, modulus, R->z)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
79 if ((err = mp_sub(R->x, t1, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
81 if ((err = mp_add(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_projective_dbl_point()
[all …]
A Dltc_ecc_map.c38 if ((err = mp_montgomery_reduce(P->z, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
41 if ((err = mp_invmod(P->z, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
44 if ((err = mp_sqr(t1, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
45 if ((err = mp_mod(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
46 if ((err = mp_mul(t1, t2, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
47 if ((err = mp_mod(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
50 if ((err = mp_mul(P->x, t2, P->x)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
51 if ((err = mp_montgomery_reduce(P->x, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
52 if ((err = mp_mul(P->y, t1, P->y)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
53 if ((err = mp_montgomery_reduce(P->y, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
[all …]
A Dltc_ecc_mulmod_timing.c75 if ((err = mp_mulmod(G->x, mu, modulus, tG->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
76 if ((err = mp_mulmod(G->y, mu, modulus, tG->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
77 if ((err = mp_mulmod(G->z, mu, modulus, tG->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
83 if ((err = ltc_ecc_copy_point(tG, M[0])) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
85 if ((err = ltc_mp.ecc_ptdbl(tG, M[1], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
111 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
112 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
119 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
120 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
129 if ((err = ltc_ecc_copy_point(M[0], R)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
[all …]
A Decc_import.c53 if ((err = ecc_set_curve_by_size(key_size, key)) != CRYPT_OK) { goto done; } in ecc_import_ex()
55 if ((err = ecc_set_curve(cu, key)) != CRYPT_OK) { goto done; } in ecc_import_ex()
68 goto done; in ecc_import_ex()
79 goto done; in ecc_import_ex()
84 goto done; in ecc_import_ex()
88 if ((err = mp_set(key->pubkey.z, 1)) != CRYPT_OK) { goto done; } in ecc_import_ex()
91 if ((err = ltc_ecc_verify_key(key)) != CRYPT_OK) { goto done; } in ecc_import_ex()
96 done: in ecc_import_ex()
A Dltc_ecc_mulmod.c76 if ((err = ltc_ecc_copy_point(G, tG)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
78 if ((err = mp_mulmod(G->x, mu, modulus, tG->x)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
79 if ((err = mp_mulmod(G->y, mu, modulus, tG->y)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
80 if ((err = mp_mulmod(G->z, mu, modulus, tG->z)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
87 if ((err = ltc_mp.ecc_ptdbl(tG, M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
88 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
89 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
127 if ((err = ltc_mp.ecc_ptdbl(R, R, ma, modulus, mp)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
139 if ((err = ltc_ecc_copy_point(M[bitbuf-8], R)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
171 if ((err = ltc_ecc_copy_point(tG, R)) != CRYPT_OK) { goto done; } in ltc_ecc_mulmod()
[all …]
A Decc_shared_secret.c48 ….ecc_ptmul(private_key->k, &public_key->pubkey, result, a, prime, 1)) != CRYPT_OK) { goto done; } in ecc_shared_secret()
54 goto done; in ecc_shared_secret()
57 …unsigned_bin(result->x, out + (x - mp_unsigned_bin_size(result->x)))) != CRYPT_OK) { goto done; } in ecc_shared_secret()
61 done: in ecc_shared_secret()
A Dltc_ecc_is_point_at_infinity.c30 if ((err = mp_init_multi(&x3, &y2, LTC_NULL)) != CRYPT_OK) goto done; in ltc_ecc_is_point_at_infinity()
49 done: in ltc_ecc_is_point_at_infinity()
/optee_os-3.20.0/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-3.20.0/core/lib/libtomcrypt/src/mac/f9/
A Df9_memory.c46 goto done; in f9_memory()
50 goto done; in f9_memory()
54 done: in f9_memory()
A Df9_init.c38 goto done; in f9_init()
53 done: in f9_init()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/xcbc/
A Dxcbc_memory.c46 goto done; in xcbc_memory()
50 goto done; in xcbc_memory()
54 done: in xcbc_memory()
A Dxcbc_init.c64 goto done; in xcbc_init()
84 done: in xcbc_init()
85 cipher_descriptor[cipher]->done(skey); in xcbc_init()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_shared_secret.c48 goto done; in dsa_shared_secret()
51 …to_unsigned_bin(res, out + (x - mp_unsigned_bin_size(res)))) != CRYPT_OK) { goto done; } in dsa_shared_secret()
55 done: in dsa_shared_secret()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/xts/
A Dxts_done.c17 cipher_descriptor[xts->cipher]->done(&xts->key1); in xts_done()
18 cipher_descriptor[xts->cipher]->done(&xts->key2); in xts_done()
/optee_os-3.20.0/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-3.20.0/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-3.20.0/core/lib/libtomcrypt/src/modes/f8/
A Df8_start.c73 cipher_descriptor[f8->cipher]->done(&f8->key); in f8_start()
80 cipher_descriptor[f8->cipher]->done(&f8->key); in f8_start()
A Df8_done.c24 cipher_descriptor[f8->cipher]->done(&f8->key); in f8_done()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/cbc/
A Dcbc_done.c24 cipher_descriptor[cbc->cipher]->done(&cbc->key); in cbc_done()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/cfb/
A Dcfb_done.c24 cipher_descriptor[cfb->cipher]->done(&cfb->key); in cfb_done()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/ecb/
A Decb_done.c24 cipher_descriptor[ecb->cipher]->done(&ecb->key); in ecb_done()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/ofb/
A Dofb_done.c24 cipher_descriptor[ofb->cipher]->done(&ofb->key); in ofb_done()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/ctr/
A Dctr_done.c24 cipher_descriptor[ctr->cipher]->done(&ctr->key); in ctr_done()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/lrw/
A Dlrw_done.c26 cipher_descriptor[lrw->cipher]->done(&lrw->key); in lrw_done()

Completed in 18 milliseconds

123