Home
last modified time | relevance | path

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

12

/external/dropbear/libtomcrypt/src/pk/ecc/
Decc_ansi_x963_export.c56 mp_to_unsigned_bin(key->pubkey.x, buf + (numlen - mp_unsigned_bin_size(key->pubkey.x))); in ecc_ansi_x963_export()
61 mp_to_unsigned_bin(key->pubkey.y, buf + (numlen - mp_unsigned_bin_size(key->pubkey.y))); in ecc_ansi_x963_export()
Dltc_ecc_mul2add.c79 mp_to_unsigned_bin(kA, (len - lenA) + tA); in ltc_ecc_mul2add()
82 mp_to_unsigned_bin(kB, (len - lenB) + tB); in ltc_ecc_mul2add()
Decc_shared_secret.c81 …if ((err = mp_to_unsigned_bin(result->x, out + (x - mp_unsigned_bin_size(result->x)))) != CRYPT_… in ecc_shared_secret()
/external/dropbear/libtomcrypt/src/pk/asn1/der/integer/
Dder_encode_integer.c95 if ((err = mp_to_unsigned_bin(num, out)) != CRYPT_OK) { in der_encode_integer()
114 if ((err = mp_to_unsigned_bin(tmp, out)) != CRYPT_OK) { in der_encode_integer()
/external/dropbear/libtomcrypt/testprof/
Dkatja_test.c29 mp_to_unsigned_bin(key.N, tmp); in katja_test()
37 mp_to_unsigned_bin(key.p, tmp); in katja_test()
45 mp_to_unsigned_bin(key.q, tmp); in katja_test()
Drsa_test.c151 mp_to_unsigned_bin(key.N, tmp); in rsa_test()
159 mp_to_unsigned_bin(key.p, tmp); in rsa_test()
167 mp_to_unsigned_bin(key.q, tmp); in rsa_test()
/external/dropbear/libtommath/
Dbn_mp_to_unsigned_bin_n.c25 return mp_to_unsigned_bin(a, b); in mp_to_unsigned_bin_n()
Dbn_mp_to_signed_bin.c23 if ((res = mp_to_unsigned_bin (a, b + 1)) != MP_OKAY) { in mp_to_signed_bin()
Dbn_mp_to_unsigned_bin.c19 int mp_to_unsigned_bin (mp_int * a, unsigned char *b) in mp_to_unsigned_bin() function
Dtommath.h524 int mp_to_unsigned_bin(mp_int *a, unsigned char *b);
545 #define mp_tomag(mp, str) mp_to_unsigned_bin((mp), (str))
/external/dropbear/libtomcrypt/src/pk/pkcs1/
Dpkcs_1_i2osp.c43 return mp_to_unsigned_bin(n, out+(modulus_len-size)); in pkcs_1_i2osp()
/external/dropbear/
Ddss.c272 if (mp_to_unsigned_bin(mp, ret) != MP_OKAY) { in mptobytes()
393 if (mp_to_unsigned_bin(&dss_r, buf_getwriteptr(buf, writelen)) in buf_put_dss_sign()
406 if (mp_to_unsigned_bin(&dss_s, buf_getwriteptr(buf, writelen)) in buf_put_dss_sign()
Dbuffer.c301 if (mp_to_unsigned_bin(mp, buf_getwriteptr(buf, len-pad)) != MP_OKAY) { in buf_putmpint()
Drsa.c353 if (mp_to_unsigned_bin(&rsa_s, buf_getwriteptr(buf, ssize)) != MP_OKAY) { in buf_put_rsa_sign()
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_shared_secret.c59 …if ((err = mp_to_unsigned_bin(res, out + (x - mp_unsigned_bin_size(res)))) != CRYPT_OK) … in dsa_shared_secret()
/external/dropbear/libtommath/mtest/
Dmpi.h197 mp_err mp_to_unsigned_bin(mp_int *mp, unsigned char *str);
207 #define mp_tomag(mp, str) mp_to_unsigned_bin((mp), (str))
Dmpi.c2305 return mp_to_unsigned_bin(mp, str + 1); in mp_to_signed_bin()
2371 mp_err mp_to_unsigned_bin(mp_int *mp, unsigned char *str) in mp_to_unsigned_bin() function
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_exptmod.c100 …if ((err = mp_to_unsigned_bin(tmp, out+(x-mp_unsigned_bin_size(tmp)))) != CRYPT_OK) … in rsa_exptmod()
/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_exptmod.c100 …if ((err = mp_to_unsigned_bin(tmp, out+(x-mp_unsigned_bin_size(tmp)))) != CRYPT_OK) … in katja_exptmod()
/external/wpa_supplicant/
Dbignum.c88 if (mp_to_unsigned_bin((mp_int *) n, buf) != MP_OKAY) { in bignum_get_unsigned_bin()
Dcrypto_libtomcrypt.c26 #define mp_to_unsigned_bin(a, b) ltc_mp.unsigned_write(a, b) macro
721 if (mp_to_unsigned_bin(r, result) != CRYPT_OK) in crypto_mod_exp()
/external/dropbear/libtomcrypt/src/math/fp/
Dltc_ecc_fp_mulmod.c842 if ((err = mp_to_unsigned_bin(tk, kb)) != CRYPT_OK) { in accel_fp_mul()
1008 if ((err = mp_to_unsigned_bin(tka, kb[0])) != CRYPT_OK) { in accel_fp_mul2add()
1030 if ((err = mp_to_unsigned_bin(tkb, kb[1])) != CRYPT_OK) { in accel_fp_mul2add()
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_math.h467 #define mp_to_unsigned_bin(a, b) ltc_mp.unsigned_write(a, b) macro
/external/dropbear/libtomcrypt/src/math/
Dltm_desc.c195 return mpi_to_ltc_error(mp_to_unsigned_bin(a, b)); in unsigned_write()
/external/dropbear/libtommath/demo/
Ddemo.c506 mp_to_unsigned_bin(&c, (unsigned char *) cmd); in main()

12