/external/chromium_org/third_party/openssl/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/chromium_org/third_party/openssl/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 | 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/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 | 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/chromium_org/third_party/openssl/openssl/crypto/bn/ |
H A D | bn_const.c | 1 /* crypto/bn/knownprimes.c */ 4 #include "bn.h" 14 BIGNUM *get_rfc2409_prime_768(BIGNUM *bn) argument 26 return BN_bin2bn(RFC2409_PRIME_768,sizeof(RFC2409_PRIME_768),bn); 37 BIGNUM *get_rfc2409_prime_1024(BIGNUM *bn) argument 52 return BN_bin2bn(RFC2409_PRIME_1024,sizeof(RFC2409_PRIME_1024),bn); 63 BIGNUM *get_rfc3526_prime_1536(BIGNUM *bn) argument 83 return BN_bin2bn(RFC3526_PRIME_1536,sizeof(RFC3526_PRIME_1536),bn); 93 BIGNUM *get_rfc3526_prime_2048(BIGNUM *bn) argument 119 return BN_bin2bn(RFC3526_PRIME_2048,sizeof(RFC3526_PRIME_2048),bn); 129 get_rfc3526_prime_3072(BIGNUM *bn) argument 175 get_rfc3526_prime_4096(BIGNUM *bn) argument 232 get_rfc3526_prime_6144(BIGNUM *bn) argument 310 get_rfc3526_prime_8192(BIGNUM *bn) argument [all...] |
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...] |
/external/chromium_org/third_party/openssl/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/chromium_org/third_party/openssl/openssl/crypto/jpake/ |
H A D | jpaketest.c | 18 static void showbn(const char *name, const BIGNUM *bn) argument 22 BN_print_fp(stdout, bn);
|
/external/openssl/crypto/bn/ |
H A D | bn_const.c | 1 /* crypto/bn/knownprimes.c */ 4 #include "bn.h" 14 BIGNUM *get_rfc2409_prime_768(BIGNUM *bn) argument 26 return BN_bin2bn(RFC2409_PRIME_768,sizeof(RFC2409_PRIME_768),bn); 37 BIGNUM *get_rfc2409_prime_1024(BIGNUM *bn) argument 52 return BN_bin2bn(RFC2409_PRIME_1024,sizeof(RFC2409_PRIME_1024),bn); 63 BIGNUM *get_rfc3526_prime_1536(BIGNUM *bn) argument 83 return BN_bin2bn(RFC3526_PRIME_1536,sizeof(RFC3526_PRIME_1536),bn); 93 BIGNUM *get_rfc3526_prime_2048(BIGNUM *bn) argument 119 return BN_bin2bn(RFC3526_PRIME_2048,sizeof(RFC3526_PRIME_2048),bn); 129 get_rfc3526_prime_3072(BIGNUM *bn) argument 175 get_rfc3526_prime_4096(BIGNUM *bn) argument 232 get_rfc3526_prime_6144(BIGNUM *bn) argument 310 get_rfc3526_prime_8192(BIGNUM *bn) argument [all...] |
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...] |
/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/jpake/ |
H A D | jpaketest.c | 18 static void showbn(const char *name, const BIGNUM *bn) argument 22 BN_print_fp(stdout, bn);
|
/external/chromium_org/third_party/openssl/openssl/crypto/rsa/ |
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;
|
/external/chromium_org/third_party/openssl/openssl/crypto/srp/ |
H A D | srp.h | 72 #include <openssl/bn.h> 78 BIGNUM *bn; member in struct:SRP_gN_cache_st
|
/external/chromium_org/third_party/openssl/openssl/include/openssl/ |
H A D | srp.h | 72 #include <openssl/bn.h> 78 BIGNUM *bn; member in struct:SRP_gN_cache_st
|
/external/ipsec-tools/src/racoon/ |
H A D | prsa_par.h | 95 BIGNUM *bn; member in union:YYSTYPE
|
/external/openssl/crypto/rsa/ |
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;
|
/external/openssl/crypto/srp/ |
H A D | srp.h | 72 #include <openssl/bn.h> 78 BIGNUM *bn; member in struct:SRP_gN_cache_st
|
/external/openssl/include/openssl/ |
H A D | srp.h | 72 #include <openssl/bn.h> 78 BIGNUM *bn; member in struct:SRP_gN_cache_st
|