HomeSort by relevance Sort by last modified time
    Searched refs:bn (Results 1 - 25 of 208) sorted by null

1 2 3 4 5 6 7 8 9

  /external/openssl/apps/
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,checks,NULL,NULL) ? "" : "not ")
    [all...]
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/
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)) {
a_enum.c 62 #include <openssl/bn.h>
138 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai)
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)
178 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
i2d_pu.c 61 #include <openssl/bn.h>
t_pkey.c 63 #include <openssl/bn.h>
a_int.c 62 #include <openssl/bn.h>
404 ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai)
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)
450 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL)
  /external/openssh/
rsa.h 19 #include <openssl/bn.h>
  /external/ipsec-tools/src/racoon/
prsa_tok.l 39 #include <openssl/bn.h>
64 BIGNUM *bn = BN_new();
65 BN_hex2bn(&bn, prsatext+2);
66 prsalval.bn = bn;
prsa_par.h 95 BIGNUM *bn; member in union:YYSTYPE
  /external/openssl/crypto/bn/
bn_print.c 1 /* crypto/bn/bn_print.c */
172 int BN_hex2bn(BIGNUM **bn, const char *a)
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)
253 if (bn == NULL) return(num);
257 if (*bn == NULL
    [all...]
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...]
bn_nist.c 1 /* crypto/bn/bn_nist.c */
363 BN_ULONG bn[BN_NIST_192_TOP]; member in union:__anon12511
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:__anon12513
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, 0, 15, 14, 13, 12, 0, 0, 0)
840 BN_ULONG bn[BN_NIST_384_TOP]; member in union:__anon12515
    [all...]
  /external/openssl/crypto/dh/
dh_depr.c 61 #include <openssl/bn.h>
dh_asn1.c 61 #include <openssl/bn.h>
p192.c 60 #include <openssl/bn.h>
  /external/chromium/crypto/
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/
rsa_none.c 61 #include <openssl/bn.h>
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;
rsa_depr.c 62 #include <openssl/bn.h>
  /external/openssl/
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_gcd.c
    [all...]
  /external/openssl/crypto/ec/
ec_print.c 90 const BIGNUM *bn,
98 if ((buf_len = BN_num_bytes(bn)) == 0) return NULL;
103 if (!BN_bn2bin(bn, buf))
  /external/openssl/crypto/dsa/
dsa_depr.c 80 #include <openssl/bn.h>
  /external/openssl/crypto/ecdh/
ecdh.h 81 #include <openssl/bn.h>
  /external/openssl/include/openssl/
ecdh.h 81 #include <openssl/bn.h>

Completed in 1027 milliseconds

1 2 3 4 5 6 7 8 9