Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/ecdsa/
Decdsa_test.cc113 size_t bn_len = BN_num_bytes(order); in TestTamperedSig() local
114 if (r_len > bn_len || s_len > bn_len) { in TestTamperedSig()
117 size_t buf_len = 2 * bn_len; in TestTamperedSig()
120 if (!BN_bn2bin_padded(raw_buf.data(), bn_len, ecdsa_sig->r) || in TestTamperedSig()
121 !BN_bn2bin_padded(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)) { in TestTamperedSig()
130 if (BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r) == NULL || in TestTamperedSig()
131 BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s) == NULL || in TestTamperedSig()
138 if (BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r) == NULL || in TestTamperedSig()
139 BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s) == NULL || in TestTamperedSig()