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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to