Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2017 04:25:44 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323898 - head/tests/sys/opencrypto
Message-ID:  <201709220425.v8M4PiXA027023@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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')



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