Author: cem
Date: Fri Sep 22 04:25:44 2017
New Revision: 323898
URL: https://svnweb.freebsd.org/changeset/base/323898

Log:
  cryptotest.py: Fix whitespace style errors
  
  I accidentally introduced different whitespace style in r323878.  I'm not
  used to using tabs for indentation in Python scripts.
  
  Whitespace only; no functional change.
  
  Sponsored by: Dell EMC Isilon

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

Modified: head/tests/sys/opencrypto/cryptotest.py
==============================================================================
--- head/tests/sys/opencrypto/cryptotest.py     Fri Sep 22 02:58:47 2017        
(r323897)
+++ head/tests/sys/opencrypto/cryptotest.py     Fri Sep 22 04:25:44 2017        
(r323898)
@@ -249,29 +249,29 @@ def GenTestCase(cname):
 
                                blocksize = None
                                if hashlen == 20:
-                                   alg = cryptodev.CRYPTO_SHA1_HMAC
-                                   blocksize = 64
+                                       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:
+                                       # Cryptodev doesn't support SHA-224
+                                       # Slurp remaining input in section
+                                       for data in lines:
+                                               continue
                                        continue
-                                   continue
                                elif hashlen == 32:
-                                   alg = cryptodev.CRYPTO_SHA2_256_HMAC
-                                   blocksize = 64
+                                       alg = cryptodev.CRYPTO_SHA2_256_HMAC
+                                       blocksize = 64
                                elif hashlen == 48:
-                                   alg = cryptodev.CRYPTO_SHA2_384_HMAC
-                                   blocksize = 128
+                                       alg = cryptodev.CRYPTO_SHA2_384_HMAC
+                                       blocksize = 128
                                elif hashlen == 64:
-                                   alg = cryptodev.CRYPTO_SHA2_512_HMAC
-                                   blocksize = 128
+                                       alg = cryptodev.CRYPTO_SHA2_512_HMAC
+                                       blocksize = 128
                                else:
-                                   # Skip unsupported hashes
-                                   # Slurp remaining input in section
-                                   for data in lines:
+                                       # Skip unsupported hashes
+                                       # Slurp remaining input in section
+                                       for data in lines:
+                                               continue
                                        continue
-                                   continue
 
                                for data in lines:
                                        key = data['Key'].decode('hex')
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to