Go to the documentation of this file.
23 #include "../crypto/test/file_test.h"
24 #include "../crypto/test/test_util.h"
37 TestCtx *
ctx =
reinterpret_cast<TestCtx *
>(
arg);
46 if (!t->GetInstruction(&out_len,
"L") ||
47 md_len != strtoul(out_len.c_str(),
nullptr, 0)) {
51 std::vector<uint8_t>
seed;
52 if (!t->GetBytes(&
seed,
"Seed") ||
53 seed.size() != md_len) {
57 std::vector<uint8_t>
out =
seed;
59 printf(
"%s\r\n", t->CurrentTestToString().c_str());
62 std::vector<uint8_t>
msg;
66 for (
int i = 0;
i < 1000;
i++) {
70 digest_len !=
out.size()) {
85 fprintf(
stderr,
"usage: %s <hash> <test file>\n",
arg);
91 return usage(argv[0]);
static int usage(char *arg)
#define EVP_get_digestbyname
int FileTestMain(FileTestFunc run_test, void *arg, const char *path)
static const uint8_t seed[20]
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
static struct test_ctx ctx
static bool TestSHAMonte(FileTest *t, void *arg)
int cavp_sha_monte_test_main(int argc, char **argv)
def c_str(s, encoding='ascii')
std::string EncodeHex(bssl::Span< const uint8_t > in)
void EchoComment(const std::string &comment)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:52