/external/boringssl/src/crypto/fipsmodule/bn/ |
H A D | bn.c | 57 #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 160 BN_clear(BIGNUM *bn) argument 228 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_is_negative(const BIGNUM *bn) argument 304 BN_set_negative(BIGNUM *bn, int sign) argument 312 bn_wexpand(BIGNUM *bn, size_t words) argument 344 bn_expand(BIGNUM *bn, size_t bits) argument 352 bn_correct_top(BIGNUM *bn) argument [all...] |
H A D | cmp.c | 57 #include <openssl/bn.h> 177 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { argument 178 switch (bn->top) { 180 return bn->d[0] == w; 199 int BN_is_zero(const BIGNUM *bn) { argument 200 return bn->top == 0; 203 int BN_is_one(const BIGNUM *bn) { argument 204 return bn->neg == 0 && BN_abs_is_word(bn, 1); 207 int BN_is_word(const BIGNUM *bn, BN_ULON argument 211 BN_is_odd(const BIGNUM *bn) argument 215 BN_is_pow2(const BIGNUM *bn) argument [all...] |
H A D | bytes.c | 57 #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); 242 BN_ULONG BN_get_word(const BIGNUM *bn) { argument 253 BN_get_u64(const BIGNUM *bn, uint64_t *out) argument [all...] |
H A D | rsaz_exp.h | 46 #include <openssl/bn.h>
|
H A D | bn_test.cc | 70 /* Per C99, various stdint.h and inttypes.h macros (the latter used by bn.h) are 90 #include <openssl/bn.h> 673 FileTestGTest("crypto/fipsmodule/bn/bn_tests.txt", [&](FileTest *t) { 779 bssl::UniquePtr<BIGNUM> bn; local 780 int ret = DecimalToBIGNUM(&bn, "0"); 782 EXPECT_TRUE(BN_is_zero(bn.get())); 783 EXPECT_FALSE(BN_is_negative(bn.get())); 785 ret = DecimalToBIGNUM(&bn, "256"); 787 EXPECT_TRUE(BN_is_word(bn.get(), 256)); 788 EXPECT_FALSE(BN_is_negative(bn 807 bssl::UniquePtr<BIGNUM> bn; local 843 bssl::UniquePtr<BIGNUM> bn = ASCIIToBIGNUM("0"); local 1018 bssl::UniquePtr<BIGNUM> bn = ASCIIToBIGNUM(test.value_ascii); local 1088 bssl::UniquePtr<BIGNUM> bn = ASCIIToBIGNUM("-1"); local 1308 bssl::UniquePtr<BIGNUM> bn; local [all...] |
H A D | internal.h | 198 /* bn_correct_top decrements |bn->top| until |bn->d[top-1]| is non-zero or 199 * until |top| is zero. If |bn| is zero, |bn->neg| is set to zero. */ 200 void bn_correct_top(BIGNUM *bn); 202 /* bn_wexpand ensures that |bn| has at least |words| works of space without 205 int bn_wexpand(BIGNUM *bn, size_t words); 209 int bn_expand(BIGNUM *bn, size_t bits); 211 /* bn_set_words sets |bn| to the value encoded in the |num| words in |words|, 213 int bn_set_words(BIGNUM *bn, cons [all...] |
/external/google-tv-pairing-protocol/cpp/src/polo/util/ |
H A D | poloutil.cc | 25 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/openssh/regress/unittests/bitmap/ |
H A D | tests.c | 19 #include <openssl/bn.h> 31 BIGNUM *bn; local 40 bn = BN_new(); 41 ASSERT_PTR_NE(bn, NULL); 49 BN_clear(bn); 55 ASSERT_INT_EQ(BN_set_bit(bn, i), 1); 59 ASSERT_INT_EQ(BN_set_bit(bn, j), 1); 63 ASSERT_INT_EQ(BN_set_bit(bn, k), 1); 66 /* Check perfect match between bitmap and bn */ 69 ASSERT_INT_EQ(BN_is_bit_set(bn, [all...] |
/external/openssh/regress/unittests/sshbuf/ |
H A D | test_sshbuf_getput_crypto.c | 19 #include <openssl/bn.h> 35 BIGNUM *bn, *bn2; local 81 MKBN(hexbn1, bn); 84 ASSERT_INT_EQ(sshbuf_put_bignum1(p1, bn), 0); 86 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn)); 88 BN_free(bn); 93 MKBN(hexbn1, bn); 97 r = sshbuf_put_bignum1(p1, bn); 100 BN_free(bn); 105 MKBN(hexbn2, bn); [all...] |
H A D | test_sshbuf_getput_fuzz.c | 19 #include <openssl/bn.h> 35 BIGNUM *bn; local 57 bn = BN_new(); 58 sshbuf_get_bignum1(p1, bn); 59 BN_clear_free(bn); 60 bn = BN_new(); 61 sshbuf_get_bignum2(p1, bn); 62 BN_clear_free(bn);
|
/external/openssh/ |
H A D | rsa.h | 19 #include <openssl/bn.h>
|
/external/boringssl/src/crypto/bn_extra/ |
H A D | bn_asn1.c | 15 #include <openssl/bn.h> 61 int BN_marshal_asn1(CBB *cbb, const BIGNUM *bn) { argument 63 if (BN_is_negative(bn)) { 71 * otherwise be set or if |bn| is zero. */ 72 (BN_num_bits(bn) % 8 == 0 && !CBB_add_u8(&child, 0x00)) || 73 !BN_bn2cbb_padded(&child, BN_num_bytes(bn), bn) ||
|
H A D | convert.c | 57 #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 D | prsa_tok.l | 39 #include <openssl/bn.h> 64 BIGNUM *bn = BN_new(); 65 BN_hex2bn(&bn, prsatext+2); 66 prsalval.bn = bn;
|
/external/google-benchmark/tools/gbench/ |
H A D | report.py | 84 gen = (bn for bn in json1['benchmarks'] if 'real_time' in bn and 'cpu_time' in bn) 85 for bn in gen: 86 other_bench = find_test(bn['name']) 98 tres = calculate_change(bn['real_time'], other_bench['real_time']) 99 cpures = calculate_change(bn['cpu_time'], other_bench['cpu_time']) 101 BC_HEADER, bn['name'], first_col_width, 103 bn['cpu_tim [all...] |
/external/boringssl/src/crypto/asn1/ |
H A D | a_enum.c | 139 ASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(BIGNUM *bn, ASN1_ENUMERATED *ai) argument 152 if (BN_is_negative(bn)) 156 j = BN_num_bits(bn); 167 ret->length = BN_bn2bin(bn, ret->data); 175 BIGNUM *ASN1_ENUMERATED_to_BN(ASN1_ENUMERATED *ai, BIGNUM *bn) argument 179 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL)
|
/external/clang/test/OpenMP/ |
H A D | target_firstprivate_codegen.cpp | 52 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 D | target_private_codegen.cpp | 29 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 D | nvptx_target_codegen.cpp | 23 float bn[n]; local 264 bn[3] += 1.0;
|
H A D | target_codegen.cpp | 85 float bn[n]; local 294 bn[3] += 1.0;
|
/external/libcxx/utils/google-benchmark/tools/gbench/ |
H A D | report.py | 83 for bn in json1['benchmarks']: 84 other_bench = find_test(bn['name']) 96 tres = calculate_change(bn['real_time'], other_bench['real_time']) 97 cpures = calculate_change(bn['cpu_time'], other_bench['cpu_time']) 99 BC_HEADER, bn['name'], first_col_width, 101 bn['cpu_time'], other_bench['cpu_time'],
|
/external/boringssl/src/crypto/dh/ |
H A D | dh_asn1.c | 61 #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 D | bn.h | 145 * 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 D | bn.h | 145 * 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 D | Converter.java | 68 String bn = fileName.substring(0, ind); 69 int ind2 = bn.lastIndexOf(File.separatorChar); 70 String baseName = bn.substring(ind2 + 1);
|