From 53cfa36d37805898bfb8e8b0859f35e9bce10982 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 26 May 2005 18:48:24 +0000 Subject: [PATCH] Allow zero length messages and make format look more like samples. --- fips/sha1/fips_sha1test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fips/sha1/fips_sha1test.c b/fips/sha1/fips_sha1test.c index 5ab4d4f04c..b8af33fadd 100644 --- a/fips/sha1/fips_sha1test.c +++ b/fips/sha1/fips_sha1test.c @@ -262,7 +262,7 @@ int dgst_test(BIO *err, BIO *out, BIO *in) BIO_puts(out, olinebuf); - if (md && Msg && (MsgLen > 0)) + if (md && Msg && (MsgLen >= 0)) { if (!print_dgst(err, md, out, Msg, MsgLen)) goto error; @@ -353,6 +353,8 @@ static int print_monte(BIO *err, const EVP_MD *md, BIO *out, memcpy(m2, Seed, SeedLen); memcpy(m3, Seed, SeedLen); + BIO_puts(out, "\n"); + for (j = 0; j < 100; j++) { for (i = 0; i < 1000; i++) -- 2.25.1