Skip to content

Commit 306be14

Browse files
committed
Some clean up (more to come).
1 parent cb162d0 commit 306be14

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

pyscrypt/file.py

+2-19
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,6 @@
6060

6161
BLOCK_SIZE = 16
6262

63-
# We use the crypto library to test until we finish the pure-python aes-256 CTR library
64-
if False:
65-
from Crypto.Cipher import AES
66-
from Crypto.Util import Counter
67-
68-
class aes(object):
69-
def __init__(self, key):
70-
counter = Counter.new(128, initial_value = 0)
71-
self._aes = AES.new(key, AES.MODE_CTR, counter = counter)
72-
73-
def encrypt(self, plaintext):
74-
return self._aes.encrypt(plaintext)
75-
76-
def decrypt(self, ciphertext):
77-
return self._aes.decrypt(ciphertext)
78-
79-
8063
class InvalidScryptFileFormat(Exception): pass
8164

8265
class ScryptFile(object):
@@ -150,8 +133,8 @@ def _load_get_attr(self, name):
150133
#newlines = property(lambda s: s._fp.newlines) # This requires more work to make work
151134

152135
# @TODO; test with print
153-
def _set_softspace(self, value):
154-
self._fp.softspace = value
136+
#def _set_softspace(self, value):
137+
# self._fp.softspace = value
155138
#softspace = property(lambda s: s._fp.softspace, _set_softspace)
156139

157140
def fileno(self):

0 commit comments

Comments
 (0)