Lines Matching defs:MD
29 struct MD {
39 static const MD md4 = { "MD4", &EVP_md4, nullptr };
40 static const MD md5 = { "MD5", &EVP_md5, &MD5 };
41 static const MD sha1 = { "SHA1", &EVP_sha1, &SHA1 };
42 static const MD sha224 = { "SHA224", &EVP_sha224, &SHA224 };
43 static const MD sha256 = { "SHA256", &EVP_sha256, &SHA256 };
44 static const MD sha384 = { "SHA384", &EVP_sha384, &SHA384 };
45 static const MD sha512 = { "SHA512", &EVP_sha512, &SHA512 };
46 static const MD md5_sha1 = { "MD5-SHA1", &EVP_md5_sha1, nullptr };
49 // md is the digest to test.
50 const MD &md;
152 test->md.name, test->input, (int)test->repeat,
164 if (!EVP_DigestInit_ex(ctx.get(), test->md.func(), NULL)) {
185 if (!EVP_DigestInit_ex(ctx.get(), test->md.func(), NULL)) {
205 if (digest_len != EVP_MD_size(test->md.func())) {
214 if (test->md.one_shot_func && test->repeat == 1) {
215 uint8_t *out = test->md.one_shot_func((const uint8_t *)test->input,
221 if (!CompareDigest(test, digest, EVP_MD_size(test->md.func()))) {
226 out = test->md.one_shot_func((const uint8_t *)test->input,
228 if (!CompareDigest(test, out, EVP_MD_size(test->md.func()))) {