Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/ecdsa/
Decdsa_test.cc118 std::vector<uint8_t> raw_buf(buf_len); in TestTamperedSig() local
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()
126 size_t offset = raw_buf[10] % buf_len; in TestTamperedSig()
127 uint8_t dirt = raw_buf[11] ? raw_buf[11] : 1; in TestTamperedSig()
128 raw_buf[offset] ^= dirt; 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()
137 raw_buf[offset] ^= dirt; in TestTamperedSig()
138 if (BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r) == NULL || in TestTamperedSig()
[all …]
/external/pdfium/core/src/fxge/agg/src/
Dfx_agg_driver.cpp303 agg::rendering_buffer raw_buf(pThisLayer->GetBuffer(), pThisLayer->GetWidth(), in SetClipMask() local
306 agg::pixfmt_gray8 pixel_buf(raw_buf); in SetClipMask()