svn commit: r348190 - stable/12/tests/sys/opencrypto

John Baldwin jhb at FreeBSD.org
Thu May 23 19:13:39 UTC 2019


Author: jhb
Date: Thu May 23 19:13:38 2019
New Revision: 348190
URL: https://svnweb.freebsd.org/changeset/base/348190

Log:
  MFC 346421: Test SHA2-224-HMAC now that OCF supports it.

Modified:
  stable/12/tests/sys/opencrypto/cryptotest.py
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/tests/sys/opencrypto/cryptotest.py
==============================================================================
--- stable/12/tests/sys/opencrypto/cryptotest.py	Thu May 23 19:12:47 2019	(r348189)
+++ stable/12/tests/sys/opencrypto/cryptotest.py	Thu May 23 19:13:38 2019	(r348190)
@@ -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


More information about the svn-src-stable mailing list