Searched refs:ltc_key (Results 1 – 6 of 6) sorted by relevance
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | sm2-dsa.c | 27 ecc_key ltc_key = { }; in sm2_ltc_dsa_sign() local 71 ltc_res = ltc_ecc_mulmod(k, <c_key.dp.base, x1y1p, ltc_key.dp.A, in sm2_ltc_dsa_sign() 72 ltc_key.dp.prime, 1); in sm2_ltc_dsa_sign() 97 ltc_res = mp_add_d(ltc_key.k, 1, s); in sm2_ltc_dsa_sign() 107 ltc_res = mp_mul(r, ltc_key.k, tmp); in sm2_ltc_dsa_sign() 130 ecc_free(<c_key); in sm2_ltc_dsa_sign() 144 ecc_key ltc_key = { }; in sm2_ltc_dsa_verify() local 221 ltc_res = mp_mulmod(ltc_key.dp.A, mu, ltc_key.dp.prime, ma); in sm2_ltc_dsa_verify() 226 ltc_res = ltc_ecc_mul2add(<c_key.dp.base, sprime, <c_key.pubkey, t, in sm2_ltc_dsa_verify() 227 x1y1p, ma, ltc_key.dp.prime); in sm2_ltc_dsa_verify() [all …]
|
A D | rsa.c | 226 ltc_key); in rsadorep() 280 ltc_key.e = key->e; in sw_crypto_acipher_rsanopad_encrypt() 281 ltc_key.N = key->n; in sw_crypto_acipher_rsanopad_encrypt() 302 ltc_key.e = key->e; in sw_crypto_acipher_rsanopad_decrypt() 303 ltc_key.N = key->n; in sw_crypto_acipher_rsanopad_decrypt() 304 ltc_key.d = key->d; in sw_crypto_acipher_rsanopad_decrypt() 340 ltc_key.e = key->e; in sw_crypto_acipher_rsaes_decrypt() 341 ltc_key.d = key->d; in sw_crypto_acipher_rsaes_decrypt() 342 ltc_key.N = key->n; in sw_crypto_acipher_rsaes_decrypt() 382 <c_key); in sw_crypto_acipher_rsaes_decrypt() [all …]
|
A D | sm2-pke.c | 114 ecc_key ltc_key = { }; in sm2_ltc_pke_decrypt() local 176 ltc_key.dp.prime, 1); in sm2_ltc_pke_decrypt() 201 ltc_res = ltc_ecc_mulmod(ltc_key.k, C1, x2y2p, ltc_key.dp.A, in sm2_ltc_pke_decrypt() 202 ltc_key.dp.prime, 1); in sm2_ltc_pke_decrypt() 298 ecc_free(<c_key); in sm2_ltc_pke_decrypt() 336 ecc_key ltc_key = { }; in sm2_ltc_pke_encrypt() local 375 ltc_res = ltc_ecc_mulmod(k, <c_key.dp.base, C1, ltc_key.dp.A, in sm2_ltc_pke_encrypt() 376 ltc_key.dp.prime, 1); in sm2_ltc_pke_encrypt() 397 ltc_res = ltc_ecc_mulmod(h, <c_key.pubkey, S, ltc_key.dp.A, in sm2_ltc_pke_encrypt() 427 ltc_res = ltc_ecc_mulmod(k, <c_key.pubkey, x2y2p, ltc_key.dp.A, in sm2_ltc_pke_encrypt() [all …]
|
A D | ecc.c | 204 memset(ltc_key, 0, sizeof(*ltc_key)); in ecc_populate_ltc_private_key() 210 ltc_key->type = PK_PRIVATE; in ecc_populate_ltc_private_key() 211 mp_copy(key->d, ltc_key->k); in ecc_populate_ltc_private_key() 214 mp_set_int(ltc_key->pubkey.z, 1); in ecc_populate_ltc_private_key() 235 memset(ltc_key, 0, sizeof(*ltc_key)); in ecc_populate_ltc_public_key() 241 ltc_key->type = PK_PUBLIC; in ecc_populate_ltc_public_key() 257 ecc_key ltc_key = { }; in _ltc_ecc_sign() local 285 ecc_free(<c_key); in _ltc_ecc_sign() 297 ecc_key ltc_key = { }; in _ltc_ecc_verify() local 313 <c_key); in _ltc_ecc_verify() [all …]
|
A D | dsa.c | 103 dsa_key ltc_key = { in crypto_acipher_dsa_sign() local 124 if (mp_unsigned_bin_size(ltc_key.q) < hash_size) in crypto_acipher_dsa_sign() 125 hash_size = mp_unsigned_bin_size(ltc_key.q); in crypto_acipher_dsa_sign() 131 if (*sig_len < 2 * mp_unsigned_bin_size(ltc_key.q)) { in crypto_acipher_dsa_sign() 132 *sig_len = 2 * mp_unsigned_bin_size(ltc_key.q); in crypto_acipher_dsa_sign() 144 find_prng("prng_crypto"), <c_key); in crypto_acipher_dsa_sign() 147 *sig_len = 2 * mp_unsigned_bin_size(ltc_key.q); in crypto_acipher_dsa_sign() 171 dsa_key ltc_key = { in crypto_acipher_dsa_verify() local 194 ltc_res = dsa_verify_hash_raw(r, s, msg, msg_len, <c_stat, <c_key); in crypto_acipher_dsa_verify()
|
A D | acipher_helpers.h | 39 TEE_Result ecc_populate_ltc_private_key(ecc_key *ltc_key, 42 TEE_Result ecc_populate_ltc_public_key(ecc_key *ltc_key,
|
Completed in 9 milliseconds