/external/openssl/apps/ |
H A D | prime.c | 53 #include <openssl/bn.h> 68 BIGNUM *bn=NULL; local 132 bn=BN_new(); 133 BN_generate_prime_ex(bn,bits,safe,NULL,NULL,NULL); 134 s=hex ? BN_bn2hex(bn) : BN_bn2dec(bn); 141 BN_hex2bn(&bn,argv[0]); 143 BN_dec2bn(&bn,argv[0]); 145 BN_print(bio_out,bn); 147 BN_is_prime_ex(bn,check [all...] |
H A D | genrsa.c | 74 #include <openssl/bn.h> 107 BIGNUM *bn = BN_new(); local 110 if(!bn) goto err; 276 if(!BN_set_word(bn, f4) || !RSA_generate_key_ex(rsa, num, bn, &cb)) 304 if (bn) BN_free(bn);
|
/external/openssl/crypto/asn1/ |
H A D | x_bignum.c | 62 #include <openssl/bn.h> 112 BIGNUM *bn; local 115 bn = (BIGNUM *)*pval; 117 if(BN_num_bits(bn) & 0x7) pad = 0; 121 BN_bn2bin(bn, cont); 123 return pad + BN_num_bytes(bn); 129 BIGNUM *bn; local 131 bn = (BIGNUM *)*pval; 132 if(!BN_bin2bn(cont, len, bn)) {
|
H A D | a_enum.c | 62 #include <openssl/bn.h> 138 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) argument 152 if(BN_is_negative(bn)) ret->type = V_ASN1_NEG_ENUMERATED; 154 j=BN_num_bits(bn); 167 ret->length=BN_bn2bin(bn,ret->data); 174 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) argument 178 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
|
H A D | i2d_pu.c | 61 #include <openssl/bn.h>
|
H A D | t_pkey.c | 63 #include <openssl/bn.h>
|
H A D | a_int.c | 62 #include <openssl/bn.h> 404 ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai) argument 418 if (BN_is_negative(bn)) 421 j=BN_num_bits(bn); 433 ret->length=BN_bn2bin(bn,ret->data); 446 BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn) argument 450 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
|
/external/openssh/ |
H A D | rsa.h | 19 #include <openssl/bn.h>
|
/external/ipsec-tools/src/racoon/ |
H A D | prsa_tok.l | 39 #include <openssl/bn.h> 64 BIGNUM *bn = BN_new(); 65 BN_hex2bn(&bn, prsatext+2); 66 prsalval.bn = bn;
|
H A D | prsa_par.h | 95 BIGNUM *bn; member in union:YYSTYPE
|
/external/openssl/crypto/bn/ |
H A D | bn_print.c | 1 /* crypto/bn/bn_print.c */ 172 int BN_hex2bn(BIGNUM **bn, const char *a) argument 187 if (bn == NULL) return(num); 190 if (*bn == NULL) 196 ret= *bn; 231 *bn=ret; 235 if (*bn == NULL) BN_free(ret); 239 int BN_dec2bn(BIGNUM **bn, const char *a) argument 253 if (bn == NULL) return(num); 257 if (*bn 297 BN_asc2bn(BIGNUM **bn, const char *a) argument [all...] |
H A D | bn_ctx.c | 1 /* crypto/bn/bn_ctx.c */ 371 BIGNUM *bn = p->head->vals; local 374 if(bn->d) BN_clear_free(bn); 375 bn++; 390 BIGNUM *bn = item->vals; local 393 if(bn->d) BN_clear(bn); 394 bn++; 407 BIGNUM *bn; local [all...] |
H A D | bn_nist.c | 1 /* crypto/bn/bn_nist.c */ 363 BN_ULONG bn[BN_NIST_192_TOP]; member in union:__anon10554 399 nist_cp_bn_0(buf.bn, a_d + BN_NIST_192_TOP, top - BN_NIST_192_TOP, BN_NIST_192_TOP); 433 nist_set_192(t_d, buf.bn, 0, 3, 3); 435 nist_set_192(t_d, buf.bn, 4, 4, 0); 437 nist_set_192(t_d, buf.bn, 5, 5, 5) 637 BN_ULONG bn[BN_NIST_256_TOP]; member in union:__anon10556 674 nist_cp_bn_0(buf.bn, a_d + BN_NIST_256_TOP, top - BN_NIST_256_TOP, BN_NIST_256_TOP); 752 nist_set_256(t_d, buf.bn, 15, 14, 13, 12, 11, 0, 0, 0); 754 nist_set_256(c_d, buf.bn, 840 BN_ULONG bn[BN_NIST_384_TOP]; member in union:__anon10558 [all...] |
/external/openssl/crypto/dh/ |
H A D | dh_depr.c | 61 #include <openssl/bn.h>
|
H A D | dh_asn1.c | 61 #include <openssl/bn.h>
|
H A D | p192.c | 60 #include <openssl/bn.h>
|
/external/chromium/crypto/ |
H A D | rsa_private_key_openssl.cc | 55 ScopedOpenSSL<BIGNUM, BN_free> bn(BN_new()); 56 if (!rsa_key.get() || !bn.get() || !BN_set_word(bn.get(), 65537L)) 59 if (!RSA_generate_key_ex(rsa_key.get(), num_bits, bn.get(), NULL))
|
/external/openssl/crypto/rsa/ |
H A D | rsa_none.c | 61 #include <openssl/bn.h>
|
H A D | rsa_lib.c | 63 #include <openssl/bn.h> 294 BIGNUM *bn,**t[6],*b; local 314 bn=(BIGNUM *)p; 319 *(t[i])= &(bn[i]); 320 memcpy((char *)&(bn[i]),(char *)b,sizeof(BIGNUM)); 321 bn[i].flags=BN_FLG_STATIC_DATA; 322 bn[i].d=ul;
|
H A D | rsa_depr.c | 62 #include <openssl/bn.h>
|
/external/openssl/ |
H A D | Crypto-config.mk | 142 crypto/bn/bn_add.c \ 143 crypto/bn/bn_asm.c \ 144 crypto/bn/bn_blind.c \ 145 crypto/bn/bn_const.c \ 146 crypto/bn/bn_ctx.c \ 147 crypto/bn/bn_div.c \ 148 crypto/bn/bn_err.c \ 149 crypto/bn/bn_exp.c \ 150 crypto/bn/bn_exp2.c \ 151 crypto/bn/bn_gc [all...] |
/external/openssl/crypto/ec/ |
H A D | ec_print.c | 90 const BIGNUM *bn, 98 if ((buf_len = BN_num_bytes(bn)) == 0) return NULL; 103 if (!BN_bn2bin(bn, buf)) 89 EC_POINT_bn2point(const EC_GROUP *group, const BIGNUM *bn, EC_POINT *point, BN_CTX *ctx) argument
|
/external/openssl/crypto/dsa/ |
H A D | dsa_depr.c | 80 #include <openssl/bn.h>
|
/external/openssl/crypto/ecdh/ |
H A D | ecdh.h | 81 #include <openssl/bn.h>
|
/external/openssl/include/openssl/ |
H A D | ecdh.h | 81 #include <openssl/bn.h>
|