File tree 1 file changed +2
-19
lines changed
1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change 60
60
61
61
BLOCK_SIZE = 16
62
62
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
-
80
63
class InvalidScryptFileFormat (Exception ): pass
81
64
82
65
class ScryptFile (object ):
@@ -150,8 +133,8 @@ def _load_get_attr(self, name):
150
133
#newlines = property(lambda s: s._fp.newlines) # This requires more work to make work
151
134
152
135
# @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
155
138
#softspace = property(lambda s: s._fp.softspace, _set_softspace)
156
139
157
140
def fileno (self ):
You can’t perform that action at this time.
0 commit comments