Home
last modified time | relevance | path

Searched refs:mp_to_unsigned_bin (Results 1 – 20 of 20) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_export_point.c27 if ((err = mp_to_unsigned_bin(x, buf + (size - xsize))) != CRYPT_OK) return err; in ltc_ecc_export_point()
41 if ((err = mp_to_unsigned_bin(x, buf + (size - xsize))) != CRYPT_OK) return err; in ltc_ecc_export_point()
45 if ((err = mp_to_unsigned_bin(y, buf + (size - ysize))) != CRYPT_OK) return err; in ltc_ecc_export_point()
A Decc_sign_hash.c130 if ((err = mp_to_unsigned_bin(r, out + (pbytes - i))) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
132 if ((err = mp_to_unsigned_bin(s, out + (2*pbytes - i))) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
145 if ((err = mp_to_unsigned_bin(r, out + 32 - i)) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
147 if ((err = mp_to_unsigned_bin(s, out + 64 - i)) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
A Decc_export_openssl.c58 if ((err = mp_to_unsigned_bin(a, bin_a)) != CRYPT_OK) { goto error; } in ecc_export_openssl()
64 if ((err = mp_to_unsigned_bin(b, bin_b)) != CRYPT_OK) { goto error; } in ecc_export_openssl()
139 if ((err = mp_to_unsigned_bin(key->k, bin_k)) != CRYPT_OK) { goto error; } in ecc_export_openssl()
A Decc_get_key.c40 if ((err = mp_to_unsigned_bin(key->k, out + (size - ksize))) != CRYPT_OK) return err; in ecc_get_key()
A Decc_shared_secret.c57 …if ((err = mp_to_unsigned_bin(result->x, out + (x - mp_unsigned_bin_size(result->x)))) != CRYPT_… in ecc_shared_secret()
A Dltc_ecc_mul2add.c69 mp_to_unsigned_bin(kA, (len - lenA) + tA); in ltc_ecc_mul2add()
72 mp_to_unsigned_bin(kB, (len - lenB) + tB); in ltc_ecc_mul2add()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/integer/
A Dder_encode_integer.c74 if ((err = mp_to_unsigned_bin(num, out)) != CRYPT_OK) { in der_encode_integer()
93 if ((err = mp_to_unsigned_bin(tmp, out)) != CRYPT_OK) { in der_encode_integer()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/pkcs1/
A Dpkcs_1_i2osp.c35 return mp_to_unsigned_bin(n, out+(modulus_len-size)); in pkcs_1_i2osp()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/
A Ddh_export_key.c34 return mp_to_unsigned_bin(k, out); in dh_export_key()
A Ddh_shared_secret.c59 if ((err = mp_to_unsigned_bin(tmp, out)) != CRYPT_OK) { in dh_shared_secret()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Dradix_to_bin.c47 if ((err = mp_to_unsigned_bin(mpi, out)) != CRYPT_OK) goto LBL_ERR; in radix_to_bin()
A Dltm_desc.c220 return mpi_to_ltc_error(mp_to_unsigned_bin(a, b)); in unsigned_write()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_shared_secret.c51 …if ((err = mp_to_unsigned_bin(res, out + (x - mp_unsigned_bin_size(res)))) != CRYPT_OK) … in dsa_shared_secret()
A Ddsa_generate_pqg.c145 if ((err = mp_to_unsigned_bin(seedinc, sbuf + seedbytes-i)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Ddsa.c149 mp_to_unsigned_bin(r, (uint8_t *)sig + *sig_len/2 - in crypto_acipher_dsa_sign()
151 mp_to_unsigned_bin(s, (uint8_t *)sig + *sig_len - in crypto_acipher_dsa_sign()
A Dacipher_helpers.h51 mp_to_unsigned_bin(_a, (b) + (c) - mp_unsigned_bin_size(_a)); \
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/ssh/
A Dssh_encode_sequence_multi.c138 if ((err = mp_to_unsigned_bin(vdata, out)) != CRYPT_OK) { in ssh_encode_sequence_multi()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_exptmod.c159 …if ((err = mp_to_unsigned_bin(tmp, out+(x-mp_unsigned_bin_size(tmp)))) != CRYPT_OK) … in rsa_exptmod()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c835 if ((err = mp_to_unsigned_bin(tk, kb)) != CRYPT_OK) { in s_accel_fp_mul()
1001 if ((err = mp_to_unsigned_bin(tka, kb[0])) != CRYPT_OK) { in ss_accel_fp_mul2add()
1023 if ((err = mp_to_unsigned_bin(tkb, kb[1])) != CRYPT_OK) { in ss_accel_fp_mul2add()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_private.h192 #define mp_to_unsigned_bin(a, b) ltc_mp.unsigned_write(a, b) macro

Completed in 31 milliseconds