/external/boringssl/src/crypto/fipsmodule/bn/ |
D | bn.c | 70 BIGNUM *bn = OPENSSL_malloc(sizeof(BIGNUM)); in BN_new() local 72 if (bn == NULL) { in BN_new() 77 OPENSSL_memset(bn, 0, sizeof(BIGNUM)); in BN_new() 78 bn->flags = BN_FLG_MALLOCED; in BN_new() 80 return bn; in BN_new() 83 void BN_init(BIGNUM *bn) { in BN_init() argument 84 OPENSSL_memset(bn, 0, sizeof(BIGNUM)); in BN_init() 87 void BN_free(BIGNUM *bn) { in BN_free() argument 88 if (bn == NULL) { in BN_free() 92 if ((bn->flags & BN_FLG_STATIC_DATA) == 0) { in BN_free() [all …]
|
D | cmp.c | 130 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { in BN_abs_is_word() argument 131 if (bn->width == 0) { in BN_abs_is_word() 134 BN_ULONG mask = bn->d[0] ^ w; in BN_abs_is_word() 135 for (int i = 1; i < bn->width; i++) { in BN_abs_is_word() 136 mask |= bn->d[i]; in BN_abs_is_word() 152 int BN_is_zero(const BIGNUM *bn) { in BN_is_zero() argument 153 return bn_fits_in_words(bn, 0); in BN_is_zero() 156 int BN_is_one(const BIGNUM *bn) { in BN_is_one() argument 157 return bn->neg == 0 && BN_abs_is_word(bn, 1); in BN_is_one() 160 int BN_is_word(const BIGNUM *bn, BN_ULONG w) { in BN_is_word() argument [all …]
|
D | bytes.c | 69 BIGNUM *bn = NULL; in BN_bin2bn() local 72 ret = bn = BN_new(); in BN_bin2bn() 87 if (bn) { in BN_bin2bn() 88 BN_free(bn); in BN_bin2bn() 112 BIGNUM *bn = NULL; in BN_le2bn() local 114 bn = BN_new(); in BN_le2bn() 115 ret = bn; in BN_le2bn() 131 BN_free(bn); in BN_le2bn() 203 BN_ULONG BN_get_word(const BIGNUM *bn) { in BN_get_word() argument 204 switch (bn_minimal_width(bn)) { in BN_get_word() [all …]
|
D | bn_test.cc | 1100 bssl::UniquePtr<BIGNUM> bn; in TEST_F() local 1101 int ret = DecimalToBIGNUM(&bn, "0"); in TEST_F() 1103 EXPECT_TRUE(BN_is_zero(bn.get())); in TEST_F() 1104 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F() 1106 ret = DecimalToBIGNUM(&bn, "256"); in TEST_F() 1108 EXPECT_TRUE(BN_is_word(bn.get(), 256)); in TEST_F() 1109 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F() 1111 ret = DecimalToBIGNUM(&bn, "-42"); in TEST_F() 1113 EXPECT_TRUE(BN_abs_is_word(bn.get(), 42)); in TEST_F() 1114 EXPECT_TRUE(BN_is_negative(bn.get())); in TEST_F() [all …]
|
D | div_extra.c | 62 uint16_t bn_mod_u16_consttime(const BIGNUM *bn, uint16_t d) { in bn_mod_u16_consttime() argument 76 for (int i = bn->width - 1; i >= 0; i--) { in bn_mod_u16_consttime() 78 ret = shift_and_add_mod_u16(ret, bn->d[i], d, p, m); in bn_mod_u16_consttime() 80 ret = shift_and_add_mod_u16(ret, bn->d[i] >> 32, d, p, m); in bn_mod_u16_consttime() 81 ret = shift_and_add_mod_u16(ret, bn->d[i] & 0xffffffff, d, p, m); in bn_mod_u16_consttime()
|
D | internal.h | 216 int bn_minimal_width(const BIGNUM *bn); in OPENSSL_MSVC_PRAGMA() 220 void bn_set_minimal_width(BIGNUM *bn); in OPENSSL_MSVC_PRAGMA() 225 int bn_wexpand(BIGNUM *bn, size_t words); in OPENSSL_MSVC_PRAGMA() 229 int bn_expand(BIGNUM *bn, size_t bits); in OPENSSL_MSVC_PRAGMA() 233 OPENSSL_EXPORT int bn_resize_words(BIGNUM *bn, size_t words); in OPENSSL_MSVC_PRAGMA() 242 int bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num); in OPENSSL_MSVC_PRAGMA() 246 int bn_fits_in_words(const BIGNUM *bn, size_t num); in OPENSSL_MSVC_PRAGMA() 250 int bn_copy_words(BN_ULONG *out, size_t num, const BIGNUM *bn); in OPENSSL_MSVC_PRAGMA() 430 int bn_less_than_montgomery_R(const BIGNUM *bn, const BN_MONT_CTX *mont); in OPENSSL_MSVC_PRAGMA() 434 OPENSSL_EXPORT uint16_t bn_mod_u16_consttime(const BIGNUM *bn, uint16_t d); in OPENSSL_MSVC_PRAGMA() [all …]
|
/external/epid-sdk/epid/common/math/unittests/ |
D | bignum-test.cc | 151 BigNum* bn = nullptr; in TEST_F() local 152 EXPECT_EQ(kEpidNoErr, NewBigNum(32, &bn)); in TEST_F() 153 DeleteBigNum(&bn); in TEST_F() 161 BigNum* bn = nullptr; in TEST_F() local 162 EXPECT_EQ(kEpidBadArgErr, NewBigNum(0, &bn)); in TEST_F() 163 DeleteBigNum(&bn); in TEST_F() 167 BigNum* bn = nullptr; in TEST_F() local 168 THROW_ON_EPIDERR(NewBigNum(sizeof(BigNumStr), &bn)); in TEST_F() 169 DeleteBigNum(&bn); in TEST_F() 170 EXPECT_EQ(nullptr, bn); in TEST_F() [all …]
|
/external/openssh/regress/unittests/sshbuf/ |
D | test_sshbuf_getput_crypto.c | 35 BIGNUM *bn, *bn2; in sshbuf_getput_crypto_tests() local 81 MKBN(hexbn1, bn); in sshbuf_getput_crypto_tests() 84 ASSERT_INT_EQ(sshbuf_put_bignum1(p1, bn), 0); in sshbuf_getput_crypto_tests() 86 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn)); in sshbuf_getput_crypto_tests() 88 BN_free(bn); in sshbuf_getput_crypto_tests() 93 MKBN(hexbn1, bn); in sshbuf_getput_crypto_tests() 97 r = sshbuf_put_bignum1(p1, bn); in sshbuf_getput_crypto_tests() 100 BN_free(bn); in sshbuf_getput_crypto_tests() 105 MKBN(hexbn2, bn); in sshbuf_getput_crypto_tests() 108 ASSERT_INT_EQ(sshbuf_put_bignum1(p1, bn), 0); in sshbuf_getput_crypto_tests() [all …]
|
D | test_sshbuf_getput_fuzz.c | 35 BIGNUM *bn; in attempt_parse_blob() local 57 bn = BN_new(); in attempt_parse_blob() 58 sshbuf_get_bignum1(p1, bn); in attempt_parse_blob() 59 BN_clear_free(bn); in attempt_parse_blob() 60 bn = BN_new(); in attempt_parse_blob() 61 sshbuf_get_bignum2(p1, bn); in attempt_parse_blob() 62 BN_clear_free(bn); in attempt_parse_blob()
|
/external/openssh/regress/unittests/bitmap/ |
D | tests.c | 31 BIGNUM *bn; in tests() local 40 bn = BN_new(); in tests() 41 ASSERT_PTR_NE(bn, NULL); in tests() 49 BN_clear(bn); in tests() 55 ASSERT_INT_EQ(BN_set_bit(bn, i), 1); in tests() 59 ASSERT_INT_EQ(BN_set_bit(bn, j), 1); in tests() 63 ASSERT_INT_EQ(BN_set_bit(bn, k), 1); in tests() 69 ASSERT_INT_EQ(BN_is_bit_set(bn, n), in tests() 75 ASSERT_INT_EQ(BN_num_bits(bn), in tests() 77 ASSERT_INT_EQ(BN_num_bytes(bn), in tests() [all …]
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | spv.140.frag.out | 28 Name 87 "bn" 29 MemberName 87(bn) 0 "matra" 30 MemberName 87(bn) 1 "matca" 31 MemberName 87(bn) 2 "matr" 32 MemberName 87(bn) 3 "matc" 33 MemberName 87(bn) 4 "matrdef" 48 MemberDecorate 87(bn) 0 RowMajor 49 MemberDecorate 87(bn) 0 Offset 0 50 MemberDecorate 87(bn) 0 MatrixStride 16 51 MemberDecorate 87(bn) 1 ColMajor [all …]
|
D | spv.450.tesc.out | 40 Name 42 "bn" 41 MemberName 42(bn) 0 "v1" 42 MemberName 42(bn) 1 "v2" 43 MemberName 42(bn) 2 "v3" 68 MemberDecorate 42(bn) 0 Patch 69 MemberDecorate 42(bn) 0 Location 20 70 MemberDecorate 42(bn) 1 Patch 71 MemberDecorate 42(bn) 1 Location 24 72 MemberDecorate 42(bn) 2 Patch 73 MemberDecorate 42(bn) 2 Location 25 [all …]
|
D | spv.specConstant.comp.out | 13 Name 7 "bn" 14 MemberName 7(bn) 0 "a" 16 MemberDecorate 7(bn) 0 Offset 0 17 Decorate 7(bn) BufferBlock 26 7(bn): TypeStruct 6(int) 27 8: TypePointer Uniform 7(bn)
|
/external/tensorflow/tensorflow/python/layers/ |
D | normalization_test.py | 55 bn = bn_layer.apply(conv, training=training) 56 loss = math_ops.reduce_sum(math_ops.abs(bn)) 262 bn = normalization_layers.BatchNormalization(axis=1) 265 outputs = bn.apply(inputs, training=training) 271 self.assertEqual(len(bn.updates), 2) 272 self.assertEqual(len(bn.variables), 4) 273 self.assertEqual(len(bn.trainable_variables), 2) 274 self.assertEqual(len(bn.non_trainable_variables), 2) 277 self.assertEqual(len(bn.updates), 2) 279 ops.get_collection(ops.GraphKeys.UPDATE_OPS), bn.updates) [all …]
|
/external/epid-sdk/epid/common-testhelper/unittests/ |
D | bignum_wrapper-test.cc | 50 BigNumObj bn; in TEST_F() local 51 EXPECT_NE(nullptr, (BigNum*)bn); in TEST_F() 121 BigNumObj const bn; in TEST_F() local 122 BigNum const* bn_ptr = bn; in TEST_F() 127 BigNumObj const bn; in TEST_F() local 128 BigNum const* bn_ptr = bn.getc(); in TEST_F() 151 BigNumObj bn; in TEST_F() local 152 BigNum const* bn_ptr = bn; in TEST_F() 157 BigNumObj bn; in TEST_F() local 158 BigNum const* bn_ptr = bn.getc(); in TEST_F() [all …]
|
/external/boringssl/src/include/openssl/ |
D | bn.h | 175 OPENSSL_EXPORT void BN_init(BIGNUM *bn); 179 OPENSSL_EXPORT void BN_free(BIGNUM *bn); 183 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn); 194 OPENSSL_EXPORT void BN_clear(BIGNUM *bn); 204 OPENSSL_EXPORT unsigned BN_num_bits(const BIGNUM *bn); 208 OPENSSL_EXPORT unsigned BN_num_bytes(const BIGNUM *bn); 211 OPENSSL_EXPORT void BN_zero(BIGNUM *bn); 215 OPENSSL_EXPORT int BN_one(BIGNUM *bn); 219 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value); 223 OPENSSL_EXPORT int BN_set_u64(BIGNUM *bn, uint64_t value); [all …]
|
/external/boringssl/src/crypto/bn_extra/ |
D | convert.c | 79 char *BN_bn2hex(const BIGNUM *bn) { in BN_bn2hex() argument 80 int width = bn_minimal_width(bn); in BN_bn2hex() 89 if (bn->neg) { in BN_bn2hex() 93 if (BN_is_zero(bn)) { in BN_bn2hex() 101 int v = ((int)(bn->d[i] >> (long)j)) & 0xff; in BN_bn2hex() 115 static int decode_hex(BIGNUM *bn, const char *in, int in_len) { in decode_hex() argument 121 if (!bn_expand(bn, in_len * 4)) { in decode_hex() 153 bn->d[i++] = word; in decode_hex() 156 assert(i <= bn->dmax); in decode_hex() 157 bn->width = i; in decode_hex() [all …]
|
D | bn_asn1.c | 45 int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn) { in BN_marshal_asn1() argument 47 if (BN_is_negative(bn)) { in BN_marshal_asn1() 56 (BN_num_bits(bn) % 8 == 0 && !CBB_add_u8(&child, 0x00)) || in BN_marshal_asn1() 57 !BN_bn2cbb_padded(&child, BN_num_bytes(bn), bn) || in BN_marshal_asn1()
|
/external/epid-sdk/epid/common/math/src/ |
D | bignum.c | 29 BigNum* bn = NULL; in NewBigNum() local 67 bn = (BigNum*)SAFE_ALLOC(sizeof(BigNum)); in NewBigNum() 68 if (!bn) { in NewBigNum() 73 bn->ipp_bn = ipp_bn_ctx; in NewBigNum() 75 *bignum = bn; in NewBigNum() 81 SAFE_FREE(bn); in NewBigNum() 95 EpidStatus ReadBigNum(ConstOctStr bn_str, size_t strlen, BigNum* bn) { in ReadBigNum() argument 102 if (!bn || !bn_str) return kEpidBadArgErr; in ReadBigNum() 104 if (!bn->ipp_bn) return kEpidBadArgErr; in ReadBigNum() 127 sts = ippsSet_BN(IppsBigNumPOS, 1, &zero32, bn->ipp_bn); in ReadBigNum() [all …]
|
/external/python/cpython3/PC/layout/support/ |
D | filesets.py | 28 bn = self._make_name(f) 30 bn in self._names 31 or any(map(bn.startswith, self._prefixes)) 32 or any(map(bn.endswith, self._suffixes)) 62 bn = self._make_name(f) 64 bn in self._names 65 or any(map(bn.startswith, self._prefixes)) 66 or any(map(bn.endswith, self._suffixes))
|
/external/epid-sdk/epid/common-testhelper/ |
D | octstr-testhelper.cc | 31 void delete_BigNum(IppsBigNumState** bn) { in delete_BigNum() argument 32 if (*bn) { in delete_BigNum() 33 SAFE_FREE(*bn); in delete_BigNum() 37 EpidStatus create_BigNum(IppsBigNumState** bn, const OctStr256* str) { in create_BigNum() argument 47 if (!bn || !str) { in create_BigNum() 86 *bn = ipp_bn_ctx; in create_BigNum()
|
D | bignum_wrapper-testhelper.cc | 28 void operator()(BigNum* bn) { in operator ()() 29 if (bn) { in operator ()() 30 DeleteBigNum(&bn); in operator ()() 52 std::shared_ptr<BigNum> bn; in write() local 55 bn.reset(bn_ptr, bignum_deleter); in write() 58 THROW_ON_EPIDERR(ReadBigNum(buf, buflen, bn.get())); in write() 60 bn_ = bn; in write()
|
/external/boringssl/src/crypto/asn1/ |
D | a_enum.c | 150 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) in BN_to_ASN1_ENUMERATED() argument 163 if (BN_is_negative(bn)) in BN_to_ASN1_ENUMERATED() 167 j = BN_num_bits(bn); in BN_to_ASN1_ENUMERATED() 178 ret->length = BN_bn2bin(bn, ret->data); in BN_to_ASN1_ENUMERATED() 186 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) in ASN1_ENUMERATED_to_BN() argument 190 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL) in ASN1_ENUMERATED_to_BN()
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorContractionThreadPool.h | 182 Index bm, bn, bk; 188 bn = blocking.nc(); 195 bn = blocking.nc(); 204 contractionCost(m, n, bm, bn, bk, shard_by_col, false); 232 bn = blocking.nc(); 239 bn = blocking.nc(); 245 Index nn0 = divup(n, bn); 257 gm = coarsenM(m, n, bm, bn, bk, gn, num_threads, shard_by_col); 258 gn = coarsenN(m, n, bm, bn, bk, gm, num_threads, shard_by_col); 260 gn = coarsenN(m, n, bm, bn, bk, gm, num_threads, shard_by_col); [all …]
|
/external/syzkaller/vendor/golang.org/x/text/unicode/norm/ |
D | composition.go | 279 bn := rb.nbyte 280 sz := utf8.EncodeRune(rb.byte[bn:], rune(r)) 282 rb.rune[rb.nrune] = Properties{pos: bn, size: uint8(sz)} 288 bn := rb.rune[pos].pos 289 sz := utf8.EncodeRune(rb.byte[bn:], rune(r)) 290 rb.rune[pos] = Properties{pos: bn, size: uint8(sz)} 426 bn := rb.nrune 427 for ; i < bn; i++ { 469 bn := rb.nrune 470 if bn == 0 { [all …]
|