Home
last modified time | relevance | path

Searched refs:BN_bn2binpad (Results 1 – 25 of 25) sorted by relevance

/third_party/openssl/crypto/sm2/
Dsm2_sign.c107 if (BN_bn2binpad(a, buf, p_bytes) < 0 in sm2_compute_z_digest()
109 || BN_bn2binpad(b, buf, p_bytes) < 0 in sm2_compute_z_digest()
114 || BN_bn2binpad(xG, buf, p_bytes) < 0 in sm2_compute_z_digest()
116 || BN_bn2binpad(yG, buf, p_bytes) < 0 in sm2_compute_z_digest()
121 || BN_bn2binpad(xA, buf, p_bytes) < 0 in sm2_compute_z_digest()
123 || BN_bn2binpad(yA, buf, p_bytes) < 0 in sm2_compute_z_digest()
Dsm2_crypt.c185 if (BN_bn2binpad(x2, x2y2, field_size) < 0 in sm2_encrypt()
186 || BN_bn2binpad(y2, x2y2 + field_size, field_size) < 0) { in sm2_encrypt()
341 if (BN_bn2binpad(x2, x2y2, field_size) < 0 in sm2_decrypt()
342 || BN_bn2binpad(y2, x2y2 + field_size, field_size) < 0 in sm2_decrypt()
/third_party/openssl/doc/man3/
DBN_bn2bin.pod5 BN_bn2binpad,
15 int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen);
38 BN_bn2binpad() also converts the absolute value of B<a> into big-endian form
47 BN_bn2lebinpad() and BN_lebin2bn() are identical to BN_bn2binpad() and
86 BN_bn2binpad() returns the number of bytes written or -1 if the supplied
/third_party/libwebsockets/lib/tls/openssl/
Dlws-genec.c77 int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen) in BN_bn2binpad() function
431 m = BN_bn2binpad(bn[n - 1], el[n].buf, (int32_t)el[n].len); in lws_genec_new_keypair()
579 n = BN_bn2binpad(r, sig, keybytes); in lws_genecdsa_hash_sign_jws()
585 n = BN_bn2binpad(s, sig + keybytes, keybytes); in lws_genecdsa_hash_sign_jws()
Dprivate-lib-tls-openssl.h58 int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen);
Dopenssl-x509.c723 m = BN_bn2binpad(cmpi, jwk->e[LWS_GENCRYPTO_EC_KEYEL_D].buf, in lws_x509_jwk_privkey_pem()
/third_party/openssl/crypto/ec/
Dec_print.c48 if (!BN_bn2binpad(bn, buf, buf_len)) { in EC_POINT_bn2point()
Dec_asn1.c404 if (BN_bn2binpad(tmp_1, a_buf, len) < 0 in ec_asn1_group2curve()
405 || BN_bn2binpad(tmp_2, b_buf, len) < 0) { in ec_asn1_group2curve()
Dec_key.c633 if (BN_bn2binpad(eckey->priv_key, buf, buf_len) == -1) { in ec_key_simple_priv2oct()
Dec_curve.c3302 if (BN_bn2binpad(bn[i], &param_bytes[i*param_len], param_len) <= 0) in ec_curve_nid_from_params()
/third_party/openssl/crypto/srp/
Dsrp_lib.c36 if (BN_bn2binpad(x, tmp, numN) < 0 in srp_Calc_xy()
37 || BN_bn2binpad(y, tmp + numN, numN) < 0 in srp_Calc_xy()
/third_party/openssl/crypto/rsa/
Drsa_ossl.c149 r = BN_bn2binpad(ret, to, num); in rsa_ossl_public_encrypt()
359 r = BN_bn2binpad(res, to, num); in rsa_ossl_private_encrypt()
478 j = BN_bn2binpad(ret, buf, num); in rsa_ossl_private_decrypt()
580 i = BN_bn2binpad(ret, buf, num); in rsa_ossl_public_decrypt()
/third_party/openssl/test/testutil/
Dformat_output.c309 BN_bn2binpad(bn1, m1, len); in test_fail_bignum_common()
313 BN_bn2binpad(bn2, m2, len); in test_fail_bignum_common()
/third_party/openssl/crypto/bn/
Dbn_rand.c228 if (BN_bn2binpad(priv, private_bytes, sizeof(private_bytes)) < 0) { in BN_generate_dsa_nonce()
Dbn_lib.c530 int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen) in BN_bn2binpad() function
/third_party/openssl/crypto/dh/
Ddh_key.c242 ret = BN_bn2binpad(tmp, key, BN_num_bytes(dh->p)); in compute_key()
/third_party/openssl/test/
Dbntest.c1795 if (!TEST_int_eq(BN_bn2binpad(n, NULL, 0), 0)) in test_bn2padded()
1798 if (!TEST_int_eq(BN_bn2binpad(n, out, sizeof(out)), sizeof(out))) in test_bn2padded()
1814 if (!TEST_int_eq(BN_bn2binpad(n, NULL, 0), -1)) in test_bn2padded()
1817 if (!TEST_int_eq(BN_bn2binpad(n, out, bytes - 1), -1)) in test_bn2padded()
1820 if (!TEST_int_eq(BN_bn2binpad(n, out, bytes), bytes) in test_bn2padded()
1824 if (!TEST_int_eq(BN_bn2binpad(n, out, bytes + 1), bytes + 1) in test_bn2padded()
1829 if (!TEST_int_eq(BN_bn2binpad(n, out, sizeof(out)), sizeof(out)) in test_bn2padded()
Decdsatest.c71 || !TEST_true(BN_bn2binpad(tmp, buf, num))) in fbytes()
/third_party/openssl/include/openssl/
Dbn.h223 int BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen);
/third_party/libwebsockets/lib/tls/
DCMakeLists.txt365 CHECK_FUNCTION_EXISTS(${VARIA}BN_bn2binpad LWS_HAVE_BN_bn2binpad PARENT_SCOPE)
/third_party/node/src/
Dnode_crypto.cc4630 CHECK_EQ(n, static_cast<unsigned int>(BN_bn2binpad(r, data, n))); in ConvertSignatureToP1363()
4631 CHECK_EQ(n, static_cast<unsigned int>(BN_bn2binpad(s, data + n, n))); in ConvertSignatureToP1363()
5356 BN_bn2binpad( in GenerateKeys()
5378 BN_bn2binpad(num, reinterpret_cast<unsigned char*>(data.data()), size)); in GetField()
5703 CHECK_EQ(size, BN_bn2binpad(b, in GetPrivateKey()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dcrypto_openssl.c1331 return BN_bn2binpad((const BIGNUM *) a, buf, padlen); in crypto_bignum_to_bin()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dcrypto_openssl.c1404 return BN_bn2binpad((const BIGNUM *) a, buf, padlen); in crypto_bignum_to_bin()
/third_party/grpc/src/boringssl/
Dboringssl_prefix_symbols.h892 #define BN_bn2binpad BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, BN_bn2binpad) macro
/third_party/openssl/util/
Dlibcrypto.num3872 BN_bn2binpad 3824 1_1_0 EXIST::FUNCTION: