Searched refs:bn (Results 1 - 25 of 176) sorted by relevance

12345678

/external/boringssl/src/crypto/fipsmodule/bn/
H A Dbn.c57 #include <openssl/bn.h>
70 BIGNUM *bn = OPENSSL_malloc(sizeof(BIGNUM)); local
72 if (bn == NULL) {
77 OPENSSL_memset(bn, 0, sizeof(BIGNUM));
78 bn->flags = BN_FLG_MALLOCED;
80 return bn;
83 void BN_init(BIGNUM *bn) { argument
84 OPENSSL_memset(bn, 0, sizeof(BIGNUM));
87 void BN_free(BIGNUM *bn) { argument
88 if (bn
103 BN_clear_free(BIGNUM *bn) argument
162 BN_clear(BIGNUM *bn) argument
229 BN_num_bits(const BIGNUM *bn) argument
238 BN_num_bytes(const BIGNUM *bn) argument
242 BN_zero(BIGNUM *bn) argument
246 BN_one(BIGNUM *bn) argument
250 BN_set_word(BIGNUM *bn, BN_ULONG value) argument
266 BN_set_u64(BIGNUM *bn, uint64_t value) argument
288 bn_set_words(BIGNUM *bn, const BN_ULONG *words, size_t num) argument
300 bn_fits_in_words(const BIGNUM *bn, size_t num) argument
309 bn_copy_words(BN_ULONG *out, size_t num, const BIGNUM *bn) argument
329 BN_is_negative(const BIGNUM *bn) argument
333 BN_set_negative(BIGNUM *bn, int sign) argument
341 bn_wexpand(BIGNUM *bn, size_t words) argument
373 bn_expand(BIGNUM *bn, size_t bits) argument
381 bn_resize_words(BIGNUM *bn, size_t words) argument
400 bn_minimal_width(const BIGNUM *bn) argument
408 bn_correct_top(BIGNUM *bn) argument
[all...]
H A Dbytes.c57 #include <openssl/bn.h>
69 BIGNUM *bn = NULL; local
72 ret = bn = BN_new();
87 if (bn) {
88 BN_free(bn);
115 BIGNUM *bn = NULL; local
117 bn = BN_new();
118 ret = bn;
134 BN_free(bn);
254 BN_ULONG BN_get_word(const BIGNUM *bn) { argument
265 BN_get_u64(const BIGNUM *bn, uint64_t *out) argument
[all...]
H A Drsaz_exp.h46 #include <openssl/bn.h>
H A Dcmp.c57 #include <openssl/bn.h>
215 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { argument
216 switch (bn_minimal_width(bn)) {
218 return bn->d[0] == w;
237 int BN_is_zero(const BIGNUM *bn) { argument
238 return bn_minimal_width(bn) == 0;
241 int BN_is_one(const BIGNUM *bn) { argument
242 return bn->neg == 0 && BN_abs_is_word(bn, 1);
245 int BN_is_word(const BIGNUM *bn, BN_ULON argument
249 BN_is_odd(const BIGNUM *bn) argument
253 BN_is_pow2(const BIGNUM *bn) argument
[all...]
H A Dbn_test.cc70 // Per C99, various stdint.h and inttypes.h macros (the latter used by bn.h) are
90 #include <openssl/bn.h>
815 FileTestGTest("crypto/fipsmodule/bn/bn_tests.txt", [&](FileTest *t) {
932 bssl::UniquePtr<BIGNUM> bn; local
933 int ret = DecimalToBIGNUM(&bn, "0");
935 EXPECT_TRUE(BN_is_zero(bn.get()));
936 EXPECT_FALSE(BN_is_negative(bn.get()));
938 ret = DecimalToBIGNUM(&bn, "256");
940 EXPECT_TRUE(BN_is_word(bn.get(), 256));
941 EXPECT_FALSE(BN_is_negative(bn
960 bssl::UniquePtr<BIGNUM> bn; local
996 bssl::UniquePtr<BIGNUM> bn = ASCIIToBIGNUM("0"); local
1166 bssl::UniquePtr<BIGNUM> bn = ASCIIToBIGNUM(test.value_ascii); local
1201 bssl::UniquePtr<BIGNUM> bn = ASCIIToBIGNUM("-1"); local
1422 bssl::UniquePtr<BIGNUM> bn; local
[all...]
H A Dinternal.h200 // bn_minimal_width returns the minimal value of |bn->top| which fits the
201 // value of |bn|.
202 int bn_minimal_width(const BIGNUM *bn);
204 // bn_correct_top decrements |bn->top| to |bn_minimal_width|. If |bn| is zero,
205 // |bn->neg| is set to zero.
206 void bn_correct_top(BIGNUM *bn);
208 // bn_wexpand ensures that |bn| has at least |words| works of space without
211 int bn_wexpand(BIGNUM *bn, size_t words);
215 int bn_expand(BIGNUM *bn, size_
[all...]
/external/google-tv-pairing-protocol/cpp/src/polo/util/
H A Dpoloutil.cc25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL); local
26 char* hex = BN_bn2hex(bn);
28 BN_free(bn);
36 BIGNUM* bn = NULL; local
37 BN_hex2bn(&bn, hex_string.c_str());
38 int length = BN_num_bytes(bn);
40 BN_bn2bin(bn, &bytes[0]);
41 BN_free(bn);
48 BIGNUM* bn = BN_new(); local
49 BN_add_word(bn, valu
66 BIGNUM* bn = BN_bin2bn(bytes, 4, NULL); local
[all...]
/external/boringssl/src/crypto/bn_extra/
H A Dbn_asn1.c15 #include <openssl/bn.h>
45 int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn) { argument
47 if (BN_is_negative(bn)) {
55 // otherwise be set or if |bn| is zero.
56 (BN_num_bits(bn) % 8 == 0 && !CBB_add_u8(&child, 0x00)) ||
57 !BN_bn2cbb_padded(&child, BN_num_bytes(bn), bn) ||
H A Dconvert.c57 #include <openssl/bn.h>
69 #include "../fipsmodule/bn/internal.h"
79 char *BN_bn2hex(const BIGNUM *bn) { argument
81 bn->top * BN_BYTES * 2 + 1 /* trailing NUL */);
88 if (bn->neg) {
92 if (BN_is_zero(bn)) {
97 for (int i = bn->top - 1; i >= 0; i--) {
100 int v = ((int)(bn->d[i] >> (long)j)) & 0xff;
113 // decode_hex decodes |in_len| bytes of hex data from |in| and updates |bn|.
114 static int decode_hex(BIGNUM *bn, cons argument
161 decode_dec(BIGNUM *bn, const char *in, int in_len) argument
[all...]
/external/ipsec-tools/src/racoon/
H A Dprsa_tok.l39 #include <openssl/bn.h>
64 BIGNUM *bn = BN_new();
65 BN_hex2bn(&bn, prsatext+2);
66 prsalval.bn = bn;
/external/tensorflow/tensorflow/python/layers/
H A Dnormalization_test.py53 bn = bn_layer.apply(conv, training=training)
54 loss = math_ops.reduce_sum(math_ops.abs(bn))
260 bn = normalization_layers.BatchNormalization(axis=1)
263 outputs = bn.apply(inputs, training=training)
269 self.assertEqual(len(bn.updates), 2)
270 self.assertEqual(len(bn.variables), 4)
271 self.assertEqual(len(bn.trainable_variables), 2)
272 self.assertEqual(len(bn.non_trainable_variables), 2)
275 self.assertEqual(len(bn.updates), 2)
277 ops.get_collection(ops.GraphKeys.UPDATE_OPS), bn
[all...]
/external/boringssl/src/crypto/asn1/
H A Da_enum.c150 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) argument
163 if (BN_is_negative(bn))
167 j = BN_num_bits(bn);
178 ret->length = BN_bn2bin(bn, ret->data);
186 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) argument
190 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL)
H A Dasn1_test.cc69 bssl::UniquePtr<BIGNUM> bn(BN_new());
79 ASSERT_TRUE(BN_set_u64(bn.get(), abs));
80 BN_set_negative(bn.get(), i < 0);
81 ASSERT_TRUE(BN_to_ASN1_INTEGER(bn.get(), by_bn.get()));
/external/clang/test/OpenMP/
H A Dtarget_firstprivate_codegen.cpp52 float bn[n]; local
113 #pragma omp target firstprivate(aa,b,bn,c,cn,d)
117 bn[3] = 1.0;
154 // firstprivate(bn), 2 entries, n and bn: (1) base_ptr = n, ptr = n, size = 8 ; (2) base_ptr = &c[0], ptr = &c[0], size = n*sizeof(float)
270 // firstprivate(bn)
H A Dtarget_private_codegen.cpp29 float bn[n]; local
66 #pragma omp target private(a, b, bn, c, cn, d)
70 bn[3] = 1.0;
106 // bn[3] = 1.0
H A Dnvptx_target_codegen.cpp23 float bn[n]; local
264 bn[3] += 1.0;
H A Dtarget_codegen.cpp85 float bn[n]; local
294 bn[3] += 1.0;
/external/google-benchmark/tools/gbench/
H A Dreport.py103 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['nam
[all...]
/external/libcxx/utils/google-benchmark/tools/gbench/
H A Dreport.py103 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['nam
[all...]
/external/tensorflow/tensorflow/contrib/quantize/python/
H A Dcommon.py55 bn = match.group(1)
56 if not bn.startswith(SKIPPED_PREFIXES):
57 bns.append(bn)
/external/boringssl/src/crypto/dh/
H A Ddh_asn1.c61 #include <openssl/bn.h>
77 static int marshal_integer(CBB *cbb, BIGNUM *bn) { argument
78 if (bn == NULL) {
83 return BN_marshal_asn1(cbb, bn);
/external/boringssl/include/openssl/
H A Dbn.h145 // C++ unless |__STDC_FORMAT_MACROS| defined. As this is a public header, bn.h
173 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
175 // BN_free frees the data referenced by |bn| and, if |bn| was originally
176 // allocated on the heap, frees |bn| also.
177 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
179 // BN_clear_free erases and frees the data referenced by |bn| and, if |bn| was
180 // originally allocated on the heap, frees |bn| also.
181 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
[all...]
/external/boringssl/src/include/openssl/
H A Dbn.h145 // C++ unless |__STDC_FORMAT_MACROS| defined. As this is a public header, bn.h
173 OPENSSL_EXPORT void BN_init(BIGNUM *bn);
175 // BN_free frees the data referenced by |bn| and, if |bn| was originally
176 // allocated on the heap, frees |bn| also.
177 OPENSSL_EXPORT void BN_free(BIGNUM *bn);
179 // BN_clear_free erases and frees the data referenced by |bn| and, if |bn| was
180 // originally allocated on the heap, frees |bn| also.
181 OPENSSL_EXPORT void BN_clear_free(BIGNUM *bn);
[all...]
/external/testng/src/main/java/org/testng/
H A DConverter.java68 String bn = fileName.substring(0, ind);
69 int ind2 = bn.lastIndexOf(File.separatorChar);
70 String baseName = bn.substring(ind2 + 1);
/external/boringssl/src/decrepit/dh/
H A Ddh_decrepit.c53 #include <openssl/bn.h>

Completed in 1968 milliseconds

12345678