/external/boringssl/src/crypto/bn/ |
D | bn.c | 69 BIGNUM *bn = OPENSSL_malloc(sizeof(BIGNUM)); in BN_new() local 71 if (bn == NULL) { in BN_new() 76 memset(bn, 0, sizeof(BIGNUM)); in BN_new() 77 bn->flags = BN_FLG_MALLOCED; in BN_new() 79 return bn; in BN_new() 82 void BN_init(BIGNUM *bn) { in BN_init() argument 83 memset(bn, 0, sizeof(BIGNUM)); in BN_init() 86 void BN_free(BIGNUM *bn) { in BN_free() argument 87 if (bn == NULL) { in BN_free() 91 if ((bn->flags & BN_FLG_STATIC_DATA) == 0) { in BN_free() [all …]
|
D | cmp.c | 175 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { in BN_abs_is_word() argument 176 switch (bn->top) { in BN_abs_is_word() 178 return bn->d[0] == w; in BN_abs_is_word() 186 int BN_is_zero(const BIGNUM *bn) { in BN_is_zero() argument 187 return bn->top == 0; in BN_is_zero() 190 int BN_is_one(const BIGNUM *bn) { in BN_is_one() argument 191 return bn->neg == 0 && BN_abs_is_word(bn, 1); in BN_is_one() 194 int BN_is_word(const BIGNUM *bn, BN_ULONG w) { in BN_is_word() argument 195 return BN_abs_is_word(bn, w) && (w == 0 || bn->neg == 0); in BN_is_word() 198 int BN_is_odd(const BIGNUM *bn) { in BN_is_odd() argument [all …]
|
D | bn_test.cc | 1542 ScopedBIGNUM bn; in test_dec2bn() local 1543 int ret = DecimalToBIGNUM(&bn, "0"); in test_dec2bn() 1544 if (ret != 1 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in test_dec2bn() 1549 ret = DecimalToBIGNUM(&bn, "256"); in test_dec2bn() 1550 if (ret != 3 || !BN_is_word(bn.get(), 256) || BN_is_negative(bn.get())) { in test_dec2bn() 1555 ret = DecimalToBIGNUM(&bn, "-42"); in test_dec2bn() 1556 if (ret != 3 || !BN_abs_is_word(bn.get(), 42) || !BN_is_negative(bn.get())) { in test_dec2bn() 1561 ret = DecimalToBIGNUM(&bn, "-0"); in test_dec2bn() 1562 if (ret != 2 || !BN_is_zero(bn.get()) || BN_is_negative(bn.get())) { in test_dec2bn() 1567 ret = DecimalToBIGNUM(&bn, "42trailing garbage is ignored"); in test_dec2bn() [all …]
|
D | convert.c | 76 BIGNUM *bn = NULL; in BN_bin2bn() local 79 ret = bn = BN_new(); in BN_bin2bn() 94 if (bn) { in BN_bin2bn() 95 BN_free(bn); in BN_bin2bn() 206 char *BN_bn2hex(const BIGNUM *bn) { in BN_bn2hex() argument 211 buf = (char *)OPENSSL_malloc(bn->top * BN_BYTES * 2 + 2); in BN_bn2hex() 218 if (bn->neg) { in BN_bn2hex() 222 if (BN_is_zero(bn)) { in BN_bn2hex() 226 for (i = bn->top - 1; i >= 0; i--) { in BN_bn2hex() 229 v = ((int)(bn->d[i] >> (long)j)) & 0xff; in BN_bn2hex() [all …]
|
D | bn_asn1.c | 61 int BN_bn2cbb(CBB *cbb, const BIGNUM *bn) { in BN_bn2cbb() argument 63 if (BN_is_negative(bn)) { in BN_bn2cbb() 76 if (BN_num_bits(bn) % 8 == 0 && in BN_bn2cbb() 83 if (!CBB_add_space(&child, &out, BN_num_bytes(bn))) { in BN_bn2cbb() 87 BN_bn2bin(bn, out); in BN_bn2cbb()
|
D | CMakeLists.txt | 20 bn-586.${ASM_EXT} 43 bn target 49 bn.c 73 perlasm(bn-586.${ASM_EXT} asm/bn-586.pl)
|
D | ctx.c | 244 BIGNUM *bn = p->head->vals; in BN_POOL_finish() local 246 if (bn->d) { in BN_POOL_finish() 247 BN_clear_free(bn); in BN_POOL_finish() 249 bn++; in BN_POOL_finish() 260 BIGNUM *bn; in BN_POOL_get() local 268 bn = item->vals; in BN_POOL_get() 270 BN_init(bn++); in BN_POOL_get()
|
D | mul.c | 795 int BN_mul_word(BIGNUM *bn, BN_ULONG w) { in BN_mul_word() argument 799 if (!bn->top) { in BN_mul_word() 804 BN_zero(bn); in BN_mul_word() 808 ll = bn_mul_words(bn->d, bn->d, bn->top, w); in BN_mul_word() 810 if (bn_wexpand(bn, bn->top + 1) == NULL) { in BN_mul_word() 813 bn->d[bn->top++] = ll; in BN_mul_word()
|
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
D | poloutil.cc | 25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL); in BytesToHexString() local 26 char* hex = BN_bn2hex(bn); in BytesToHexString() 28 BN_free(bn); in BytesToHexString() 36 BIGNUM* bn = NULL; in HexStringToBytes() local 37 BN_hex2bn(&bn, hex_string.c_str()); in HexStringToBytes() 38 int length = BN_num_bytes(bn); in HexStringToBytes() 40 BN_bn2bin(bn, &bytes[0]); in HexStringToBytes() 41 BN_free(bn); in HexStringToBytes() 48 BIGNUM* bn = BN_new(); in IntToBigEndianBytes() local 49 BN_add_word(bn, value); in IntToBigEndianBytes() [all …]
|
/external/boringssl/src/include/openssl/ |
D | bn.h | 171 OPENSSL_EXPORT void BN_init(BIGNUM *bn); 175 OPENSSL_EXPORT void BN_free(BIGNUM *bn); 179 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn); 190 OPENSSL_EXPORT void BN_clear(BIGNUM *bn); 207 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn); 211 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn); 214 OPENSSL_EXPORT void BN_zero(BIGNUM *bn); 218 OPENSSL_EXPORT int BN_one(BIGNUM *bn); 222 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value); 225 OPENSSL_EXPORT void BN_set_negative(BIGNUM *bn, int sign); [all …]
|
/external/boringssl/src/crypto/asn1/ |
D | x_bignum.c | 112 BIGNUM *bn; in bn_i2c() local 115 bn = (BIGNUM *)*pval; in bn_i2c() 117 if(BN_num_bits(bn) & 0x7) pad = 0; in bn_i2c() 121 BN_bn2bin(bn, cont); in bn_i2c() 123 return pad + BN_num_bytes(bn); in bn_i2c() 129 BIGNUM *bn; in bn_c2i() local 137 bn = (BIGNUM *)*pval; in bn_c2i() 138 if(!BN_bin2bn(cont, len, bn)) { in bn_c2i()
|
D | a_enum.c | 139 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) in BN_to_ASN1_ENUMERATED() argument 153 if(BN_is_negative(bn)) ret->type = V_ASN1_NEG_ENUMERATED; in BN_to_ASN1_ENUMERATED() 155 j=BN_num_bits(bn); in BN_to_ASN1_ENUMERATED() 168 ret->length=BN_bn2bin(bn,ret->data); in BN_to_ASN1_ENUMERATED() 175 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) in ASN1_ENUMERATED_to_BN() argument 179 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL) in ASN1_ENUMERATED_to_BN()
|
D | a_int.c | 407 ASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai) in BN_to_ASN1_INTEGER() argument 421 if (BN_is_negative(bn) && !BN_is_zero(bn)) in BN_to_ASN1_INTEGER() 424 j=BN_num_bits(bn); in BN_to_ASN1_INTEGER() 436 ret->length=BN_bn2bin(bn,ret->data); in BN_to_ASN1_INTEGER() 449 BIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn) in ASN1_INTEGER_to_BN() argument 453 if ((ret=BN_bin2bn(ai->data,ai->length,bn)) == NULL) in ASN1_INTEGER_to_BN()
|
D | tasn_prn.c | 482 BIGNUM *bn = NULL; in asn1_print_integer_ctx() local 486 bn = ASN1_INTEGER_to_BN(str, NULL); in asn1_print_integer_ctx() 487 if (bn == NULL) { in asn1_print_integer_ctx() 490 s = BN_bn2dec(bn); in asn1_print_integer_ctx() 491 BN_free(bn); in asn1_print_integer_ctx()
|
/external/boringssl/ |
D | sources.mk | 70 src/crypto/bn/add.c\ 71 src/crypto/bn/asm/x86_64-gcc.c\ 72 src/crypto/bn/bn.c\ 73 src/crypto/bn/bn_asn1.c\ 74 src/crypto/bn/cmp.c\ 75 src/crypto/bn/convert.c\ 76 src/crypto/bn/ctx.c\ 77 src/crypto/bn/div.c\ 78 src/crypto/bn/exponentiation.c\ 79 src/crypto/bn/gcd.c\ [all …]
|
D | android_compat_hacks.c | 31 BIGNUM *get_rfc3526_prime_1536(BIGNUM *bn) { in get_rfc3526_prime_1536() argument 32 assert(bn == NULL); in get_rfc3526_prime_1536()
|
/external/ipsec-tools/src/racoon/ |
D | prsa_tok.l | 64 BIGNUM *bn = BN_new(); variable 65 BN_hex2bn(&bn, prsatext+2); 66 prsalval.bn = bn;
|
/external/icu/icu4c/source/data/locales/ |
D | se.txt | 136 one{"0 bn"} 137 other{"0 bn"} 138 two{"0 bn"} 141 one{"00 bn"} 142 other{"00 bn"} 143 two{"00 bn"} 146 one{"000 bn"} 147 other{"000 bn"} 148 two{"000 bn"}
|
D | af.txt | 131 one{"¤0 bn"} 132 other{"¤0 bn"} 135 one{"¤00 bn"} 136 other{"¤00 bn"} 139 one{"¤000 bn"} 140 other{"¤000 bn"} 181 one{"0 bn"} 182 other{"0 bn"} 185 one{"00 bn"} 186 other{"00 bn"} [all …]
|
/external/libchrome/crypto/ |
D | rsa_private_key_openssl.cc | 61 ScopedBIGNUM bn(BN_new()); in Create() local 62 if (!rsa_key.get() || !bn.get() || !BN_set_word(bn.get(), 65537L)) in Create() 65 if (!RSA_generate_key_ex(rsa_key.get(), num_bits, bn.get(), NULL)) in Create()
|
/external/testng/src/main/java/org/testng/ |
D | Converter.java | 68 String bn = fileName.substring(0, ind); in run() local 69 int ind2 = bn.lastIndexOf(File.separatorChar); in run() 70 String baseName = bn.substring(ind2 + 1); in run()
|
/external/icu/icu4c/source/data/coll/ |
D | bn.txt | 6 // * Source File: <path>/common/collation/bn.xml 9 bn{
|
/external/clang/test/OpenMP/ |
D | target_codegen.cpp | 47 float bn[n]; in foo() local 256 bn[3] += 1.0; in foo()
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | XMPNormalizer.java | 542 bn = baseNode.iterateChildren(); in compareAliasedSubtrees() 543 an.hasNext() && bn.hasNext();) in compareAliasedSubtrees() 546 XMPNode baseChild = (XMPNode) bn.next(); in compareAliasedSubtrees() 552 bn = baseNode.iterateQualifier(); in compareAliasedSubtrees() 553 an.hasNext() && bn.hasNext();) in compareAliasedSubtrees() 556 XMPNode baseQual = (XMPNode) bn.next(); in compareAliasedSubtrees()
|
/external/hyphenation-patterns/ |
D | Android.mk | 22 bn/bn \
|