Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:08:04 -0000
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r346421 - head/tests/sys/opencrypto
Message-ID:  <201904192220.x3JMKg0s084684@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Apr 19 22:20:42 2019
New Revision: 346421
URL: https://svnweb.freebsd.org/changeset/base/346421

Log:
  Test SHA2-224-HMAC now that OCF supports it.
  
  Reviewed by:	cem
  MFC after:	2 weeks
  Sponsored by:	Chelsio Communications
  Differential Revision:	https://reviews.freebsd.org/D19882

Modified:
  head/tests/sys/opencrypto/cryptotest.py

Modified: head/tests/sys/opencrypto/cryptotest.py
==============================================================================
--- head/tests/sys/opencrypto/cryptotest.py	Fri Apr 19 22:08:17 2019	(r346420)
+++ head/tests/sys/opencrypto/cryptotest.py	Fri Apr 19 22:20:42 2019	(r346421)
@@ -279,11 +279,8 @@ def GenTestCase(cname):
 					alg = cryptodev.CRYPTO_SHA1_HMAC
 					blocksize = 64
 				elif hashlen == 28:
-					# Cryptodev doesn't support SHA-224
-					# Slurp remaining input in section
-					for data in lines:
-						continue
-					continue
+					alg = cryptodev.CRYPTO_SHA2_224_HMAC
+					blocksize = 64
 				elif hashlen == 32:
 					alg = cryptodev.CRYPTO_SHA2_256_HMAC
 					blocksize = 64





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904192220.x3JMKg0s084684>