Lines Matching refs:signature
85 std::vector<uint8_t> signature(static_cast<size_t>(sig_len)); in VerifyECDSASig() local
86 uint8_t *sig_ptr = bssl::vector_data(&signature); in VerifyECDSASig()
91 actual_result = ECDSA_verify(0, digest, digest_len, bssl::vector_data(&signature), in VerifyECDSASig()
92 signature.size(), eckey); in VerifyECDSASig()
228 std::vector<uint8_t> signature(sig_len); in TestBuiltin() local
229 if (!ECDSA_sign(0, digest, 20, bssl::vector_data(&signature), &sig_len, in TestBuiltin()
234 signature.resize(sig_len); in TestBuiltin()
238 if (!ECDSA_verify(0, digest, 20, bssl::vector_data(&signature), in TestBuiltin()
239 signature.size(), eckey.get())) { in TestBuiltin()
246 if (ECDSA_verify(0, digest, 20, bssl::vector_data(&signature), in TestBuiltin()
247 signature.size(), wrong_eckey.get())) { in TestBuiltin()
254 if (ECDSA_verify(0, wrong_digest, 20, bssl::vector_data(&signature), in TestBuiltin()
255 signature.size(), eckey.get())) { in TestBuiltin()
262 if (ECDSA_verify(0, digest, 20, bssl::vector_data(&signature), in TestBuiltin()
263 signature.size() - 1, eckey.get())) { in TestBuiltin()
270 const uint8_t *sig_ptr = bssl::vector_data(&signature); in TestBuiltin()
271 ScopedECDSA_SIG ecdsa_sig(d2i_ECDSA_SIG(NULL, &sig_ptr, signature.size())); in TestBuiltin()