From 81c37124341e2c2f80a9c2f60cefaf61143c78b7 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 22 Feb 2020 18:17:12 +0000 Subject: tests: Added a unit test for SHA256 digest generation Follow up to 2b5b37c. Closes #4968 --- lib/sha256.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/sha256.c') diff --git a/lib/sha256.c b/lib/sha256.c index bcaaeae30..5127a9edd 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -5,7 +5,8 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, Florin Petriuc, + * Copyright (C) 2017, Florin Petriuc, + * Copyright (C) 2018 - 2020, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -255,6 +256,9 @@ static int SHA256_Final(unsigned char *out, #endif +/* + * @unittest: 1610 + */ void Curl_sha256it(unsigned char *outbuffer, /* 32 unsigned chars */ const unsigned char *input) { -- cgit v1.2.3