]> granicus.if.org Git - openssl/commitdiff
Allow zero length messages and make format look more like samples.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 26 May 2005 18:48:24 +0000 (18:48 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 26 May 2005 18:48:24 +0000 (18:48 +0000)
fips/sha1/fips_sha1test.c

index 5ab4d4f04c57d483269fc637eab57c853c0e5e82..b8af33fadd8ca70401d8a659e3e8993c1e956a62 100644 (file)
@@ -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++)