Home
last modified time | relevance | path

Searched full:done (Results 1 – 25 of 252) sorted by relevance

1234567891011

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
H 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 …]
H 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 …]
H 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 …]
H A Dltc_ecc_mulmod.c72 …) { err = CRYPT_MEM; goto done; } in ltc_ecc_mulmod()
76 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()
93 if ((err = ltc_mp.ecc_ptadd(M[j-9], tG, M[j-8], 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()
[all …]
H A Dltc_ecc_mulmod_timing.c72 …) { err = CRYPT_MEM; goto done; } in ltc_ecc_mulmod()
75 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()
[all …]
H 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()
H 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()
/optee_os/core/drivers/
H A Dbcm_sotp.c82 EMSG("FDONE status done wait failed and returned %#"PRIx32, in bcm_iproc_sotp_mem_read()
112 /* Wait for SOTP command done to be set */ in bcm_iproc_sotp_mem_read()
116 EMSG("FDONE cmd done wait failed and returned %#"PRIx32, ret); in bcm_iproc_sotp_mem_read()
120 DMSG("CMD Done"); in bcm_iproc_sotp_mem_read()
122 /* Clr Start bit after command done */ in bcm_iproc_sotp_mem_read()
136 /* Command done is cleared */ in bcm_iproc_sotp_mem_read()
140 DMSG("read done"); in bcm_iproc_sotp_mem_read()
176 EMSG("FDONE status done wait failed and returned %#"PRIx32, in bcm_iproc_sotp_mem_write()
203 * accept program commands. This is done by writing 0xF, 0x4, 0x8, 0xD in bcm_iproc_sotp_mem_write()
213 /* Wait for SOTP command done to be set */ in bcm_iproc_sotp_mem_write()
[all …]
H A Dcbmem_console.c116 goto done; in get_cbmem_console_from_coreboot_table()
119 goto done; in get_cbmem_console_from_coreboot_table()
126 goto done; in get_cbmem_console_from_coreboot_table()
132 goto done; in get_cbmem_console_from_coreboot_table()
141 done: in get_cbmem_console_from_coreboot_table()
/optee_os/core/drivers/crypto/hisilicon/
H A Dsec_pbkdf2.c16 uint16_t done = 0; in sec_pbkdf2_parse_sqe() local
18 done = SEC_GET_FIELD(sqe->type2.done_flag, SEC_DONE_MASK, 0); in sec_pbkdf2_parse_sqe()
19 if (done != SEC_HW_TASK_DONE || sqe->type2.error_type) { in sec_pbkdf2_parse_sqe()
20 EMSG("SEC do pbkdf2 fail! done=%#"PRIx16", etype=%#"PRIx8, in sec_pbkdf2_parse_sqe()
21 done, sqe->type2.error_type); in sec_pbkdf2_parse_sqe()
63 uint16_t done = 0; in sec_pbkdf2_parse_bd3_sqe() local
65 done = SEC_GET_FIELD(sqe->done_flag, SEC_DONE_MASK, 0); in sec_pbkdf2_parse_bd3_sqe()
66 if (done != SEC_HW_TASK_DONE || sqe->error_type) { in sec_pbkdf2_parse_bd3_sqe()
67 EMSG("SEC do pbkdf2 fail! done=%#"PRIx16", etype=%#"PRIx8, in sec_pbkdf2_parse_bd3_sqe()
68 done, sqe->error_type); in sec_pbkdf2_parse_bd3_sqe()
H A Dhpre_montgomery.c331 uint16_t done = 0; in hpre_montgomery_parse_sqe() local
335 done = HPRE_TASK_DONE(sqe->w0); in hpre_montgomery_parse_sqe()
336 if (done != HPRE_HW_TASK_DONE || err || err1) { in hpre_montgomery_parse_sqe()
337 EMSG("HPRE do x_dh fail! done=0x%"PRIX16", etype=0x%"PRIX16",etype1=0x%"PRIX16, in hpre_montgomery_parse_sqe()
338 done, err, err1); in hpre_montgomery_parse_sqe()
339 if (done == HPRE_HW_TASK_INIT) { in hpre_montgomery_parse_sqe()
375 goto done; in hpre_montgomery_do_task()
384 done: in hpre_montgomery_do_task()
424 goto done; in hpre_montgomery_gen_keypair()
428 done: in hpre_montgomery_gen_keypair()
[all …]
H A Dsec_hash.c244 uint16_t done = 0; in sec_parse_digest_sqe() local
246 done = SEC_GET_FIELD(sqe->type2.done_flag, SEC_DONE_MASK, 0); in sec_parse_digest_sqe()
247 if (done != SEC_HW_TASK_DONE || sqe->type2.error_type) { in sec_parse_digest_sqe()
248 EMSG("SEC BD2 fail! done=%#"PRIx16", etype=%#"PRIx8, in sec_parse_digest_sqe()
249 done, sqe->type2.error_type); in sec_parse_digest_sqe()
260 uint16_t done = 0; in sec_parse_digest_bd3_sqe() local
262 done = SEC_GET_FIELD(sqe->done_flag, SEC_DONE_MASK, 0); in sec_parse_digest_bd3_sqe()
263 if (done != SEC_HW_TASK_DONE || sqe->error_type) { in sec_parse_digest_bd3_sqe()
264 EMSG("SEC BD3 fail! done=%#"PRIx16", etype=%#"PRIx8, in sec_parse_digest_bd3_sqe()
265 done, sqe->error_type); in sec_parse_digest_bd3_sqe()
H A Dsec_cipher.c378 uint16_t done = 0; in sec_cipher_bd_parse() local
380 done = SEC_GET_FIELD(sqe->type2.done_flag, SEC_DONE_MASK, 0); in sec_cipher_bd_parse()
381 if (done != SEC_HW_TASK_DONE || sqe->type2.error_type) { in sec_cipher_bd_parse()
382 EMSG("SEC BD2 fail! done=%#"PRIx16", etype=%#"PRIx8, in sec_cipher_bd_parse()
383 done, sqe->type2.error_type); in sec_cipher_bd_parse()
419 uint16_t done = 0; in sec_cipher_bd3_parse() local
421 done = SEC_GET_FIELD(sqe->done_flag, SEC_DONE_MASK, 0); in sec_cipher_bd3_parse()
422 if (done != SEC_HW_TASK_DONE || sqe->error_type) { in sec_cipher_bd3_parse()
423 EMSG("SEC BD3 fail! done=%#"PRIx16", etype=%#"PRIx8, in sec_cipher_bd3_parse()
424 done, sqe->error_type); in sec_cipher_bd3_parse()
/optee_os/core/lib/libtomcrypt/src/mac/f9/
H A Df9_memory.c46 goto done; in f9_memory()
50 goto done; in f9_memory()
54 done: in f9_memory()
H A Df9_init.c38 goto done; in f9_init()
53 done: in f9_init()
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
H 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/core/lib/libtomcrypt/src/mac/xcbc/
H A Dxcbc_memory.c46 goto done; in xcbc_memory()
50 goto done; in xcbc_memory()
54 done: in xcbc_memory()
H 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/core/lib/qcbor/src/
H A Dqcbor_decode.c70 * done; -Wmaybe-uninitialized just can’t tell). This path is not
474 goto Done; in DecodeNesting_DescendMapOrArray()
482 goto Done; in DecodeNesting_DescendMapOrArray()
487 goto Done; in DecodeNesting_DescendMapOrArray()
496 Done: in DecodeNesting_DescendMapOrArray()
536 goto Done; in DecodeNesting_DescendIntoBstrWrapped()
546 Done: in DecodeNesting_DescendIntoBstrWrapped()
714 * Decoding items is done in six layers, one calling the next one
828 goto Done; in QCBOR_Private_DecodeHead()
838 goto Done; in QCBOR_Private_DecodeHead()
[all …]
/optee_os/core/kernel/
H A Dwait_queue.c67 wqe->done = false; in wq_wait_init_condvar()
93 if (wqe->done) in wq_wait_final_helper()
120 * done. in wq_wake_next()
129 if (wqe->done) in wq_wake_next()
139 wqe->done = true; in wq_wake_next()
/optee_os/ta/pkcs11/scripts/
H A Dverify-helpers.sh29 done
52 done
83 done
99 done
H A Ddump_ec_curve_params.sh20 done
30 done
/optee_os/core/lib/libtomcrypt/src/misc/pkcs12/
H A Dpkcs12_kdf.c33 if (key == NULL || I == NULL) goto DONE; in pkcs12_kdf()
43 if (err != CRYPT_OK) goto DONE; in pkcs12_kdf()
46 if (err != CRYPT_OK) goto DONE; in pkcs12_kdf()
70 DONE: in pkcs12_kdf()
/optee_os/core/lib/libtomcrypt/src/modes/xts/
H 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/scripts/
H A Dcheckpatch.sh95 for c in "$@"; do checkpatch "$c"; done
106 for c in ${commits}; do checkpatch "$c"; done
108 done

1234567891011