/external/rust/crates/quiche/deps/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 | 1118 bssl::UniquePtr<BIGNUM> bn; in TEST_F() local 1119 int ret = DecimalToBIGNUM(&bn, "0"); in TEST_F() 1121 EXPECT_TRUE(BN_is_zero(bn.get())); in TEST_F() 1122 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F() 1124 ret = DecimalToBIGNUM(&bn, "256"); in TEST_F() 1126 EXPECT_TRUE(BN_is_word(bn.get(), 256)); in TEST_F() 1127 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F() 1129 ret = DecimalToBIGNUM(&bn, "-42"); in TEST_F() 1131 EXPECT_TRUE(BN_abs_is_word(bn.get(), 42)); in TEST_F() 1132 EXPECT_TRUE(BN_is_negative(bn.get())); in TEST_F() [all …]
|
/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 | 1118 bssl::UniquePtr<BIGNUM> bn; in TEST_F() local 1119 int ret = DecimalToBIGNUM(&bn, "0"); in TEST_F() 1121 EXPECT_TRUE(BN_is_zero(bn.get())); in TEST_F() 1122 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F() 1124 ret = DecimalToBIGNUM(&bn, "256"); in TEST_F() 1126 EXPECT_TRUE(BN_is_word(bn.get(), 256)); in TEST_F() 1127 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F() 1129 ret = DecimalToBIGNUM(&bn, "-42"); in TEST_F() 1131 EXPECT_TRUE(BN_abs_is_word(bn.get(), 42)); in TEST_F() 1132 EXPECT_TRUE(BN_is_negative(bn.get())); in TEST_F() [all …]
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/ |
D | BnMemory.c | 50 bigNum bn, // IN/OUT: number to clean in BnSetTop() argument 54 if(bn != NULL) in BnSetTop() 56 pAssert(top <= bn->allocated); in BnSetTop() 59 while(bn->size > top) in BnSetTop() 60 bn->d[--bn->size] = 0; in BnSetTop() 61 bn->size = top; in BnSetTop() 64 while((bn->size > 0) && (bn->d[bn->size - 1] == 0)) in BnSetTop() 65 bn->size -= 1; in BnSetTop() 67 return bn; in BnSetTop() 74 bigNum bn in BnClearTop() argument [all …]
|
D | BnConvert.c | 52 bigNum bn, in BnFromBytes() argument 65 if(bn == NULL) in BnFromBytes() 69 pAssert(BnGetAllocated(bn) >= size); in BnFromBytes() 74 bn->d[size - 1] = 0; in BnFromBytes() 78 pTo = (BYTE *)bn->d; in BnFromBytes() 88 bn->d[t] = SWAP_CRYPT_WORD(bn->d[t]); in BnFromBytes() 92 BnSetTop(bn, size); in BnFromBytes() 93 return bn; in BnFromBytes() 102 bigNum bn, // OUT: in BnFrom2B() argument 107 return BnFromBytes(bn, a2B->buffer, a2B->size); in BnFrom2B() [all …]
|
D | BnMath.c | 375 bigConst bn in BnMsb() argument 379 if(bn != NULL && bn->size > 0) in BnMsb() 381 int retVal = Msb(bn->d[bn->size - 1]); in BnMsb() 382 retVal += (int)(bn->size - 1) * RADIX_BITS; in BnMsb() 425 bigNum bn, // IN/OUT: big number to modify in BnSetBit() argument 430 pAssert(bn->allocated * RADIX_BITS >= bitNum); in BnSetBit() 432 while(bn->size <= offset) in BnSetBit() 433 bn->d[bn->size++] = 0; in BnSetBit() 434 bn->d[offset] |= ((crypt_uword_t)1 << RADIX_MOD(bitNum)); in BnSetBit() 446 bigNum bn, // IN: number to check in BnTestBit() argument [all …]
|
/external/icu/icu4c/source/test/testdata/ |
D | numberpermutationtest.txt | 13 bn-BD 27 bn-BD 41 bn-BD 55 bn-BD 69 bn-BD 83 bn-BD 97 bn-BD 111 bn-BD 125 bn-BD 139 bn-BD [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/ |
D | numberpermutationtest.txt | 13 bn-BD 27 bn-BD 41 bn-BD 55 bn-BD 69 bn-BD 83 bn-BD 97 bn-BD 111 bn-BD 125 bn-BD 139 bn-BD [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/ |
D | numberpermutationtest.txt | 13 bn-BD 27 bn-BD 41 bn-BD 55 bn-BD 69 bn-BD 83 bn-BD 97 bn-BD 111 bn-BD 125 bn-BD 139 bn-BD [all …]
|
/external/openssh/regress/unittests/sshbuf/ |
D | test_sshbuf_getput_crypto.c | 37 BIGNUM *bn, *bn2; in sshbuf_getput_crypto_tests() local 82 MKBN(hexbn1, bn); in sshbuf_getput_crypto_tests() 85 ASSERT_INT_EQ(sshbuf_put_bignum2(p1, bn), 0); in sshbuf_getput_crypto_tests() 87 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn)); in sshbuf_getput_crypto_tests() 89 BN_free(bn); in sshbuf_getput_crypto_tests() 94 MKBN(hexbn1, bn); in sshbuf_getput_crypto_tests() 98 r = sshbuf_put_bignum2(p1, bn); in sshbuf_getput_crypto_tests() 101 BN_free(bn); in sshbuf_getput_crypto_tests() 106 MKBN(hexbn2, bn); in sshbuf_getput_crypto_tests() 109 ASSERT_INT_EQ(sshbuf_put_bignum2(p1, bn), 0); in sshbuf_getput_crypto_tests() [all …]
|
/external/openssh/regress/unittests/bitmap/ |
D | tests.c | 34 BIGNUM *bn; in tests() local 43 bn = BN_new(); in tests() 44 ASSERT_PTR_NE(bn, NULL); in tests() 52 BN_clear(bn); in tests() 58 ASSERT_INT_EQ(BN_set_bit(bn, i), 1); in tests() 62 ASSERT_INT_EQ(BN_set_bit(bn, j), 1); in tests() 66 ASSERT_INT_EQ(BN_set_bit(bn, k), 1); in tests() 72 ASSERT_INT_EQ(BN_is_bit_set(bn, n), in tests() 78 ASSERT_INT_EQ(BN_num_bits(bn), in tests() 80 ASSERT_INT_EQ(BN_num_bytes(bn), in tests() [all …]
|
/external/tensorflow/tensorflow/python/distribute/ |
D | zero_batch_test.py | 60 bn = normalization.BatchNormalization( 62 bn_list.append(bn) 63 outputs = bn.apply(inputs, training=is_training) 77 bn = bn_list[0] 83 [bn.moving_mean, bn.moving_variance]) 87 np_gamma, np_beta = self.evaluate([bn.gamma, bn.beta]) 92 np_output, _, _ = sess.run([train_op] + bn.updates, { 100 [bn.moving_mean, bn.moving_variance]) 104 np_gamma, np_beta = self.evaluate([bn.gamma, bn.beta]) 124 bn = normalization.BatchNormalization( [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/Test/baseResults/ |
D | spv.140.frag.out | 29 Name 87 "bn" 30 MemberName 87(bn) 0 "matra" 31 MemberName 87(bn) 1 "matca" 32 MemberName 87(bn) 2 "matr" 33 MemberName 87(bn) 3 "matc" 34 MemberName 87(bn) 4 "matrdef" 51 MemberDecorate 87(bn) 0 RowMajor 52 MemberDecorate 87(bn) 0 Offset 0 53 MemberDecorate 87(bn) 0 MatrixStride 16 54 MemberDecorate 87(bn) 1 ColMajor [all …]
|
D | spv.450.tesc.out | 41 Name 42 "bn" 42 MemberName 42(bn) 0 "v1" 43 MemberName 42(bn) 1 "v2" 44 MemberName 42(bn) 2 "v3" 69 MemberDecorate 42(bn) 0 Patch 70 MemberDecorate 42(bn) 0 Location 20 71 MemberDecorate 42(bn) 1 Patch 72 MemberDecorate 42(bn) 1 Location 24 73 MemberDecorate 42(bn) 2 Patch 74 MemberDecorate 42(bn) 2 Location 25 [all …]
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | spv.140.frag.out | 29 Name 87 "bn" 30 MemberName 87(bn) 0 "matra" 31 MemberName 87(bn) 1 "matca" 32 MemberName 87(bn) 2 "matr" 33 MemberName 87(bn) 3 "matc" 34 MemberName 87(bn) 4 "matrdef" 51 MemberDecorate 87(bn) 0 RowMajor 52 MemberDecorate 87(bn) 0 Offset 0 53 MemberDecorate 87(bn) 0 MatrixStride 16 54 MemberDecorate 87(bn) 1 ColMajor [all …]
|
D | spv.450.tesc.out | 41 Name 42 "bn" 42 MemberName 42(bn) 0 "v1" 43 MemberName 42(bn) 1 "v2" 44 MemberName 42(bn) 2 "v3" 69 MemberDecorate 42(bn) 0 Patch 70 MemberDecorate 42(bn) 0 Location 20 71 MemberDecorate 42(bn) 1 Patch 72 MemberDecorate 42(bn) 1 Location 24 73 MemberDecorate 42(bn) 2 Patch 74 MemberDecorate 42(bn) 2 Location 25 [all …]
|
/external/tensorflow/tensorflow/python/keras/legacy_tf_layers/ |
D | normalization_test.py | 56 bn = bn_layer.apply(conv, training=training) 57 loss = math_ops.reduce_sum(math_ops.abs(bn)) 263 bn = normalization_layers.BatchNormalization(axis=1) 266 outputs = bn.apply(inputs, training=training) 272 self.assertEqual(len(bn.updates), 2) 273 self.assertEqual(len(bn.variables), 4) 274 self.assertEqual(len(bn.trainable_variables), 2) 275 self.assertEqual(len(bn.non_trainable_variables), 2) 278 self.assertEqual(len(bn.updates), 2) 280 ops.get_collection(ops.GraphKeys.UPDATE_OPS), bn.updates) [all …]
|
/external/libwebsockets/lib/tls/openssl/ |
D | lws-genrsa.c | 96 ctx->bn[n] = BN_bin2bn(el[n].buf, el[n].len, NULL); in lws_genrsa_create() 97 if (!ctx->bn[n]) { in lws_genrsa_create() 115 if (RSA_set0_key(ctx->rsa, ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_N], in lws_genrsa_create() 116 ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_E], in lws_genrsa_create() 117 ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_D]) != 1) { in lws_genrsa_create() 121 RSA_set0_factors(ctx->rsa, ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_P], in lws_genrsa_create() 122 ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_Q]); in lws_genrsa_create() 124 ctx->rsa->e = ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_E]; in lws_genrsa_create() 125 ctx->rsa->n = ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_N]; in lws_genrsa_create() 126 ctx->rsa->d = ctx->bn[LWS_GENCRYPTO_RSA_KEYEL_D]; in lws_genrsa_create() [all …]
|
/external/llvm-project/llvm/utils/benchmark/tools/gbench/ |
D | report.py | 103 gen = (bn for bn in json1['benchmarks'] if 'real_time' in bn and 'cpu_time' in bn) 104 for bn in gen: 105 other_bench = find_test(bn['name']) 109 if bn['time_unit'] != other_bench['time_unit']: 120 tres = calculate_change(bn['real_time'], other_bench['real_time']) 121 cpures = calculate_change(bn['cpu_time'], other_bench['cpu_time']) 123 BC_HEADER, bn['name'], first_col_width, 125 bn['real_time'], other_bench['real_time'], 126 bn['cpu_time'], other_bench['cpu_time'],
|
/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 …]
|