Searched defs:bn (Results 1 - 25 of 27) sorted by relevance

12

/external/openssl/apps/
H A Dprime.c53 #include <openssl/bn.h>
65 BIGNUM *bn=NULL; local
112 BN_hex2bn(&bn,argv[0]);
114 BN_dec2bn(&bn,argv[0]);
116 BN_print(bio_out,bn);
118 BN_is_prime_ex(bn,checks,NULL,NULL) ? "" : "not ");
120 BN_free(bn);
H A Dgenrsa.c74 #include <openssl/bn.h>
108 BIGNUM *bn = BN_new(); local
111 if(!bn) goto err;
286 else if(!BN_set_word(bn, f4) || !RSA_generate_key_ex(rsa, num, bn, &cb))
314 if (bn) BN_free(bn);
H A Docsp.c1098 BIGNUM *bn = NULL; local
1101 bn = ASN1_INTEGER_to_BN(ser,NULL);
1102 OPENSSL_assert(bn); /* FIXME: should report an error at this point and abort */
1103 if (BN_is_zero(bn))
1106 itmp = BN_bn2hex(bn);
1108 BN_free(bn);
H A Dreq.c82 #include <openssl/bn.h>
766 BIGNUM *bn = BN_new(); local
767 if(!bn || !rsa || !BN_set_word(bn, 0x10001) ||
768 !RSA_generate_key_ex(rsa, newkey, bn, &cb) ||
771 if(bn) BN_free(bn);
775 BN_free(bn);
H A Dapps.c132 #include <openssl/bn.h>
2427 static void readbn(BIGNUM **bn, BIO *bconn) argument
2436 BN_hex2bn(bn, buf);
H A Dca.c70 #include <openssl/bn.h>
2392 BIGNUM *bn = NULL; local
2398 bn = ASN1_INTEGER_to_BN(X509_get_serialNumber(x509),NULL);
2399 if (BN_is_zero(bn))
2402 row[DB_serial]=BN_bn2hex(bn);
2403 BN_free(bn);
H A Ds_server.c148 #include <openssl/bn.h>
2470 BIGNUM *bn = NULL; local
2473 if (!rsa_tmp && ((bn = BN_new()) == NULL))
2475 if (!rsa_tmp && bn)
2482 if(!BN_set_word(bn, RSA_F4) || ((rsa_tmp = RSA_new()) == NULL) ||
2483 !RSA_generate_key_ex(rsa_tmp, keylength, bn, NULL))
2493 BN_free(bn);
/external/openssl/crypto/asn1/
H A Dx_bignum.c62 #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 Da_enum.c62 #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 Da_int.c62 #include <openssl/bn.h>
405 ASN1_INTEGER *BN_to_ASN1_INTEGER(BIGNUM *bn, ASN1_INTEGER *ai) argument
419 if (BN_is_negative(bn))
422 j=BN_num_bits(bn);
434 ret->length=BN_bn2bin(bn,ret->data);
447 BIGNUM *ASN1_INTEGER_to_BN(ASN1_INTEGER *ai, BIGNUM *bn) argument
451 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
/external/openssl/crypto/bn/
H A Dbn_const.c1 /* 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 Dbn_print.c1 /* 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
[all...]
H A Dbn_ctx.c1 /* 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 Dbn_lib.c1 /* crypto/bn/bn_lib.c */
583 BIGNUM *bn = NULL; local
586 ret = bn = BN_new();
600 if (bn) BN_free(bn);
/external/openssl/crypto/ec/
H A Dec_print.c90 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 Djpaketest.c18 static void showbn(const char *name, const BIGNUM *bn) argument
22 BN_print_fp(stdout, bn);
H A Djpake.c151 static void hashbn(SHA_CTX *sha, const BIGNUM *bn) argument
153 size_t l = BN_num_bytes(bn);
157 BN_bn2bin(bn, bin);
416 static void quickhashbn(unsigned char *md, const BIGNUM *bn) argument
421 hashbn(&sha, bn);
/external/ipsec-tools/src/racoon/
H A Dprsa_par.h95 BIGNUM *bn; member in union:YYSTYPE
H A Dcrypto_openssl.c56 #include <openssl/bn.h>
238 BIGNUM *bn = BN_new(); local
246 if (BN_hex2bn(&bn, hex) != len) {
253 binlen = BN_num_bytes(bn);
261 BN_bn2bin(bn, (unsigned char *) binbuf);
264 BN_free(bn);
2530 eay_v2bn(bn, var)
2531 BIGNUM **bn;
2534 if ((*bn = BN_bin2bn((unsigned char *) var->v, var->l, NULL)) == NULL)
2541 eay_bn2v(var, bn)
[all...]
/external/openssl/crypto/rsa/
H A Drsa_eng.c63 #include <openssl/bn.h>
318 BIGNUM *bn,**t[6],*b; local
338 bn=(BIGNUM *)p;
343 *(t[i])= &(bn[i]);
344 memcpy((char *)&(bn[i]),(char *)b,sizeof(BIGNUM));
345 bn[i].flags=BN_FLG_STATIC_DATA;
346 bn[i].d=ul;
/external/icu4c/common/
H A Dlocmap.c148 static const ILcidPosixElement bn[] = { variable
149 {0x45, "bn"},
586 ILCID_POSIX_MAP(bn), /* bn Bengali; Bangla 0x45 */
/external/openssl/crypto/x509v3/
H A Dv3_utl.c66 #include <openssl/bn.h>
161 BIGNUM *bn = NULL; local
169 bn = BN_new();
180 if (ishex) ret = BN_hex2bn(&bn, value);
181 else ret = BN_dec2bn(&bn, value);
184 BN_free(bn);
189 if (isneg && BN_is_zero(bn)) isneg = 0;
191 aint = BN_to_ASN1_INTEGER(bn, NULL);
192 BN_free(bn);
/external/webkit/WebCore/editing/
H A Dvisible_units.cpp1023 Node *bn = bp.node(); local
1024 if (an == bn)
1027 return an->document() == bn->document();
/external/openssl/ssl/
H A Dssltest.c155 #include <openssl/bn.h>
2167 BIGNUM *bn = NULL; local
2170 bn = BN_new();
2172 if(!bn || !rsa_tmp || !BN_set_word(bn, RSA_F4))
2179 if(!RSA_generate_key_ex(rsa_tmp,keylength,bn,NULL))
2189 if(bn) BN_free(bn);
/external/genext2fs/
H A Dgenext2fs.c2173 int bn = 0; local
2179 printf(" %d", bk), bn++;
2180 printf("\n%d blocks (%d bytes)\n", bn, bn * BLOCKSIZE);

Completed in 273 milliseconds

12