Go to the documentation of this file.
30 const std::vector<std::string> &acceptable_flags)
const {
38 if (
std::find(acceptable_flags.begin(), acceptable_flags.end(),
flag) ==
39 acceptable_flags.end()) {
51 if (!t->GetAttribute(&
result,
"result")) {
56 }
else if (
result ==
"invalid") {
58 }
else if (
result ==
"acceptable") {
61 t->PrintLine(
"Bad result string '%s'",
result.c_str());
66 if (t->HasAttribute(
"flags")) {
71 if (comma == std::string::npos) {
85 instruction ? t->GetInstruction(&
name,
key) : t->GetAttribute(&
name,
key);
89 if (
name ==
"SHA-1") {
92 if (
name ==
"SHA-224") {
95 if (
name ==
"SHA-256") {
98 if (
name ==
"SHA-384") {
101 if (
name ==
"SHA-512") {
104 t->PrintLine(
"Unknown digest '%s'",
name.c_str());
112 instruction ? t->GetInstruction(&
name,
key) : t->GetAttribute(&
name,
key);
117 if (
name ==
"secp224r1") {
119 }
else if (
name ==
"secp256r1") {
121 }
else if (
name ==
"secp384r1") {
123 }
else if (
name ==
"secp521r1") {
126 t->PrintLine(
"Unknown curve '%s'",
name.c_str());
135 bool ok = instruction ? t->GetInstruction(&
value,
key)
143 t->PrintLine(
"Could not decode value '%s'",
value.c_str());
146 bssl::UniquePtr<BIGNUM>
ret(bn);
147 if (!
value.empty()) {
const OPENSSL_EXPORT EVP_MD * EVP_sha512(void)
#define NID_X9_62_prime256v1
static void ** find(grpc_chttp2_stream_map *map, uint32_t key)
const OPENSSL_EXPORT EVP_MD * EVP_sha384(void)
WycheproofRawResult raw_result
#define EC_GROUP_new_by_curve_name
const OPENSSL_EXPORT EVP_MD * EVP_sha256(void)
const EVP_MD * GetWycheproofDigest(FileTest *t, const char *key, bool instruction)
bssl::UniquePtr< EC_GROUP > GetWycheproofCurve(FileTest *t, const char *key, bool instruction)
bool GetWycheproofResult(FileTest *t, WycheproofResult *out)
bool IsValid(const std::vector< std::string > &acceptable_flags={}) const
UniquePtr< SSL_SESSION > ret
bssl::UniquePtr< BIGNUM > GetWycheproofBIGNUM(FileTest *t, const char *key, bool instruction)
const OPENSSL_EXPORT EVP_MD * EVP_sha1(void)
const OPENSSL_EXPORT EVP_MD * EVP_sha224(void)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:55