/external/openssh/ |
rsa.h | 22 int rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *); 23 int rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *);
|
dh.h | 31 BIGNUM *g; 32 BIGNUM *p; 37 DH *dh_new_group(BIGNUM *, BIGNUM *); 45 int dh_pub_is_valid(DH *, BIGNUM *);
|
bufbn.c | 33 buffer_put_bignum_ret(Buffer *buffer, const BIGNUM *value) 45 buffer_put_bignum(Buffer *buffer, const BIGNUM *value) 52 buffer_get_bignum_ret(Buffer *buffer, BIGNUM *value) 64 buffer_get_bignum(Buffer *buffer, BIGNUM *value) 72 buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) 84 buffer_put_bignum2(Buffer *buffer, const BIGNUM *value) 91 buffer_get_bignum2_ret(Buffer *buffer, BIGNUM *value) 103 buffer_get_bignum2(Buffer *buffer, BIGNUM *value)
|
kex.h | 187 int kex_derive_keys_bn(struct ssh *, u_char *, u_int, const BIGNUM *); 202 const BIGNUM *, const BIGNUM *, const BIGNUM *, u_char *, size_t *); 207 const BIGNUM *, const BIGNUM *, const BIGNUM *, 208 const BIGNUM *, const BIGNUM *, 213 const EC_POINT *, const EC_POINT *, const BIGNUM *, u_char *, size_t *) [all...] |
buffer.h | 52 void buffer_put_bignum(Buffer *, const BIGNUM *); 53 void buffer_put_bignum2(Buffer *, const BIGNUM *); 54 void buffer_get_bignum(Buffer *, BIGNUM *); 55 void buffer_get_bignum2(Buffer *, BIGNUM *); 78 int buffer_put_bignum_ret(Buffer *, const BIGNUM *); 79 int buffer_get_bignum_ret(Buffer *, BIGNUM *); 80 int buffer_put_bignum2_ret(Buffer *, const BIGNUM *); 81 int buffer_get_bignum2_ret(Buffer *, BIGNUM *);
|
/external/boringssl/src/include/openssl/ |
bn.h | 169 /* BN_new creates a new, allocated BIGNUM and initialises it. */ 170 OPENSSL_EXPORT BIGNUM *BN_new(void); 172 /* BN_init initialises a stack allocated |BIGNUM|. */ 173 OPENSSL_EXPORT void BN_init(BIGNUM *bn); 177 OPENSSL_EXPORT void BN_free(BIGNUM *bn); 181 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn); 183 /* BN_dup allocates a new BIGNUM and sets it equal to |src|. It returns the 184 * allocated BIGNUM on success or NULL otherwise. */ 185 OPENSSL_EXPORT BIGNUM *BN_dup(const BIGNUM *src) [all...] |
dh.h | 93 OPENSSL_EXPORT void DH_get0_key(const DH *dh, const BIGNUM **out_pub_key, 94 const BIGNUM **out_priv_key); 98 OPENSSL_EXPORT void DH_get0_pqg(const DH *dh, const BIGNUM **out_p, 99 const BIGNUM **out_q, const BIGNUM **out_g); 114 * 3526 and returns |ret|. If |ret| is NULL then a fresh |BIGNUM| is allocated 116 OPENSSL_EXPORT BIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *ret); 146 OPENSSL_EXPORT int DH_compute_key(uint8_t *out, const BIGNUM *peers_key, 186 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key [all...] |
ecdsa.h | 99 BIGNUM *r; 100 BIGNUM *s; 106 /* ECDSA_SIG_free frees |sig| its member |BIGNUM|s. */ 132 BIGNUM **kinv, BIGNUM **rp); 138 const BIGNUM *kinv, const BIGNUM *rp, 145 unsigned int *sig_len, const BIGNUM *kinv, 146 const BIGNUM *rp, const EC_KEY *eckey);
|
ec.h | 130 /* EC_GROUP_get0_order returns a pointer to the internal |BIGNUM| object in 132 OPENSSL_EXPORT const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group); 137 BIGNUM *cofactor, BN_CTX *ctx); 144 OPENSSL_EXPORT int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *out_p, 145 BIGNUM *out_a, BIGNUM *out_b, 218 BIGNUM *x, BIGNUM *y, 227 const BIGNUM *x, 228 const BIGNUM *y [all...] |
/external/boringssl/src/crypto/fipsmodule/ec/ |
internal.h | 86 int (*group_set_curve)(EC_GROUP *, const BIGNUM *p, const BIGNUM *a, 87 const BIGNUM *b, BN_CTX *); 89 BIGNUM *x, BIGNUM *y, BN_CTX *); 96 int (*mul)(const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, 97 const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx); 102 int (*field_mul)(const EC_GROUP *, BIGNUM *r, const BIGNUM *a, 103 const BIGNUM *b, BN_CTX *) [all...] |
ec_montgomery.c | 119 int ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, 120 const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { 160 int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, 161 const BIGNUM *b, BN_CTX *ctx) { 170 int ec_GFp_mont_field_sqr(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, 180 int ec_GFp_mont_field_encode(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a [all...] |
/external/openssh/regress/unittests/sshkey/ |
common.h | 14 /* Load a bignum from a file */ 15 BIGNUM *load_bignum(const char *name);
|
/external/tpm2/ |
CpriMisc_fp.h | 10 BIGNUM *BnFrom2B(BIGNUM *out, // OUT: The BIGNUM 14 BIGNUM *inVal, // IN: number to convert
|
CpriMisc.c | 15 // This function is used to convert a BigNum() to a byte array of the specified size. If the number is too large 27 BIGNUM *inVal, // IN: number to convert 69 // This function creates a BIGNUM from a TPM2B and fails if the conversion fails. 71 BIGNUM * 73 BIGNUM *out, // OUT: The BIGNUM
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
bn.c | 69 BIGNUM *BN_new(void) { 70 BIGNUM *bn = OPENSSL_malloc(sizeof(BIGNUM)); 77 OPENSSL_memset(bn, 0, sizeof(BIGNUM)); 83 void BN_init(BIGNUM *bn) { 84 OPENSSL_memset(bn, 0, sizeof(BIGNUM)); 87 void BN_free(BIGNUM *bn) { 103 void BN_clear_free(BIGNUM *bn) { 118 OPENSSL_cleanse(bn, sizeof(BIGNUM)); 124 BIGNUM *BN_dup(const BIGNUM *src) [all...] |
internal.h | 200 void bn_correct_top(BIGNUM *bn); 205 int bn_wexpand(BIGNUM *bn, size_t words); 209 int bn_expand(BIGNUM *bn, size_t bits); 213 int bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num); 239 uint64_t bn_mont_n0(const BIGNUM *n); 240 int bn_mod_exp_base_2_vartime(BIGNUM *r, unsigned p, const BIGNUM *n); 253 int bn_mod_inverse_prime(BIGNUM *out, const BIGNUM *a, const BIGNUM *p [all...] |
gcd.c | 117 static BIGNUM *euclid(BIGNUM *a, BIGNUM *b) { 118 BIGNUM *t; 186 int BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx) { 187 BIGNUM *a, *b, *t; 228 static int bn_mod_inverse_general(BIGNUM *out, int *out_no_inverse, 229 const BIGNUM *a, const BIGNUM *n [all...] |
cmp.c | 64 int BN_ucmp(const BIGNUM *a, const BIGNUM *b) { 86 int BN_cmp(const BIGNUM *a, const BIGNUM *b) { 177 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { 188 int BN_cmp_word(const BIGNUM *a, BN_ULONG b) { 189 BIGNUM b_bn; 199 int BN_is_zero(const BIGNUM *bn) { 203 int BN_is_one(const BIGNUM *bn) { 207 int BN_is_word(const BIGNUM *bn, BN_ULONG w) [all...] |
random.c | 125 static int bn_rand_with_additional_data(BIGNUM *rnd, int bits, int top, 198 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) { 203 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) { 208 BIGNUM *r, BN_ULONG min_inclusive, const BIGNUM *max_exclusive, 242 int BN_rand_range_ex(BIGNUM *r, BN_ULONG min_inclusive, 243 const BIGNUM *max_exclusive) { 248 int BN_rand_range(BIGNUM *r, const BIGNUM *range) { 252 int BN_pseudo_rand_range(BIGNUM *r, const BIGNUM *range) [all...] |
div.c | 192 int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor, 195 BIGNUM *tmp, wnum, *snum, *sdiv, *res; 389 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { 401 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m [all...] |
jacobi.c | 63 int bn_jacobi(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { 65 * For any odd BIGNUM n, 85 BIGNUM *A = BN_CTX_get(ctx); 86 BIGNUM *B = BN_CTX_get(ctx); 137 BIGNUM *tmp = A;
|
bytes.c | 65 BIGNUM *BN_bin2bn(const uint8_t *in, size_t len, BIGNUM *ret) { 69 BIGNUM *bn = NULL; 114 BIGNUM *BN_le2bn(const uint8_t *in, size_t len, BIGNUM *ret) { 115 BIGNUM *bn = NULL; 150 size_t BN_bn2bin(const BIGNUM *in, uint8_t *out) { 162 int BN_bn2le_padded(uint8_t *out, size_t len, const BIGNUM *in) { 199 static BN_ULONG read_word_padded(const BIGNUM *in, size_t i) { 208 int BN_bn2bin_padded(uint8_t *out, size_t len, const BIGNUM *in) [all...] |
prime.c | 344 static int probable_prime(BIGNUM *rnd, int bits); 345 static int probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add, 346 const BIGNUM *rem, BN_CTX *ctx); 347 static int probable_prime_dh_safe(BIGNUM *rnd, int bits, const BIGNUM *add, 348 const BIGNUM *rem, BN_CTX *ctx); 365 int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add, 366 const BIGNUM *rem, BN_GENCB *cb) [all...] |
add.c | 67 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { 68 const BIGNUM *tmp; 104 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { 107 const BIGNUM *tmp; 162 int BN_add_word(BIGNUM *a, BN_ULONG w) { 204 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) [all...] |
/external/wpa_supplicant_8/src/eap_common/ |
eap_pwd_common.h | 24 BIGNUM *order; 25 BIGNUM *prime; 64 int compute_keys(EAP_PWD_group *grp, BN_CTX *bnctx, const BIGNUM *k, 65 const BIGNUM *peer_scalar, const BIGNUM *server_scalar,
|