Home
last modified time | relevance | path

Searched refs:BN_bn2bin_padded (Results 1 – 13 of 13) sorted by relevance

/external/boringssl/src/fipstools/
Dcavp_ecdsa2_siggen_test.cc77 if (!BN_bn2bin_padded(qx_bytes.data(), qx_bytes.size(), qx.get()) || in TestECDSA2SigGenImpl()
78 !BN_bn2bin_padded(qy_bytes.data(), qy_bytes.size(), qy.get()) || in TestECDSA2SigGenImpl()
79 !BN_bn2bin_padded(r_bytes.data(), r_bytes.size(), sig->r) || in TestECDSA2SigGenImpl()
80 !BN_bn2bin_padded(s_bytes.data(), s_bytes.size(), sig->s)) { in TestECDSA2SigGenImpl()
Dcavp_ecdsa2_keypair_test.cc64 if (!BN_bn2bin_padded(qx_bytes.data(), qx_bytes.size(), qx.get()) || in TestECDSA2KeyPair()
65 !BN_bn2bin_padded(qy_bytes.data(), qy_bytes.size(), qy.get()) || in TestECDSA2KeyPair()
66 !BN_bn2bin_padded(d_bytes.data(), d_bytes.size(), in TestECDSA2KeyPair()
Dcavp_rsa2_siggen_test.cc64 if (!BN_bn2bin_padded(n_bytes.data(), n_bytes.size(), n) || in TestRSA2SigGen()
65 !BN_bn2bin_padded(e_bytes.data(), e_bytes.size(), e)) { in TestRSA2SigGen()
Dcavp_rsa2_keygen_test.cc62 !BN_bn2bin_padded(d_bytes.data(), d_bytes.size(), d) || in TestRSA2KeyGen()
/external/boringssl/src/crypto/ecdh/
Decdh.c130 if (!BN_bn2bin_padded(buf, buflen, x)) { in ECDH_compute_key()
/external/boringssl/src/crypto/fipsmodule/ec/
Doct.c136 if (!BN_bn2bin_padded(buf + i, field_len, x)) { in ec_GFp_simple_point2oct()
143 if (!BN_bn2bin_padded(buf + i, field_len, y)) { in ec_GFp_simple_point2oct()
/external/boringssl/src/crypto/fipsmodule/bn/
Dbn_test.cc692 ASSERT_TRUE(BN_bn2bin_padded(NULL, 0, n.get())); in TEST_F()
695 ASSERT_TRUE(BN_bn2bin_padded(out, sizeof(out), n.get())); in TEST_F()
706 EXPECT_FALSE(BN_bn2bin_padded(NULL, 0, n.get())); in TEST_F()
709 EXPECT_FALSE(BN_bn2bin_padded(out, bytes - 1, n.get())); in TEST_F()
712 ASSERT_TRUE(BN_bn2bin_padded(out, bytes, n.get())); in TEST_F()
716 ASSERT_TRUE(BN_bn2bin_padded(out, bytes + 1, n.get())); in TEST_F()
721 ASSERT_TRUE(BN_bn2bin_padded(out, sizeof(out), n.get())); in TEST_F()
756 ASSERT_TRUE(BN_bn2bin_padded(expected, sizeof(expected), x.get())); in TEST_F()
Dbytes.c208 int BN_bn2bin_padded(uint8_t *out, size_t len, const BIGNUM *in) { in BN_bn2bin_padded() function
/external/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc120 ASSERT_TRUE(BN_bn2bin_padded(raw_buf.data(), bn_len, ecdsa_sig->r)); in TestTamperedSig()
121 ASSERT_TRUE(BN_bn2bin_padded(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)); in TestTamperedSig()
/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa_impl.c190 if (!BN_bn2bin_padded(out, rsa_size, result)) { in RSA_encrypt()
501 if (!BN_bn2bin_padded(buf, rsa_size, result)) { in RSA_verify_raw()
632 if (!BN_bn2bin_padded(out, len, result)) { in rsa_default_private_transform()
/external/boringssl/src/crypto/bn_extra/
Dconvert.c74 return CBB_add_space(out, &ptr, len) && BN_bn2bin_padded(ptr, len, in); in BN_bn2cbb_padded()
/external/boringssl/src/ssl/
Dssl_ecdh.cc114 if (!secret || !BN_bn2bin_padded(secret.get(), secret_len, x)) { in ssl_ec_point_finish()
/external/boringssl/src/include/openssl/
Dbn.h259 OPENSSL_EXPORT int BN_bn2bin_padded(uint8_t *out, size_t len, const BIGNUM *in);