@@ -204,12 +204,12 @@ def final(self,padfct=padding.PKCS7):
204
204
For OFB,CFB, CTR: an encrypted padding will be returned, making the
205
205
total outputed bytes since construction of the cipher
206
206
a multiple of the blocksize of that cipher.
207
-
207
+
208
208
If the cipher has been used for decryption, the final function won't do
209
- antyhing . You have to manually unpad if necessary.
209
+ anything . You have to manually unpad if necessary.
210
210
211
211
After finalization, the chain can still be used but the IV, counter etc
212
- aren't reset but just continu as they were after the last step (finalization step).
212
+ aren't reset but just continue as they were after the last step (finalization step).
213
213
"""
214
214
assert self .mode not in (MODE_XTS , MODE_CMAC ) # finalizing (=padding) doesn't make sense when in XTS or CMAC mode
215
215
if self .ed == 'e' :
@@ -433,7 +433,7 @@ def update(self, data, ed):
433
433
class XTS :
434
434
"""XTS Chaining Mode
435
435
436
- Usable with blockcihpers with a 16 byte blocksize
436
+ Usable with blockciphers with a 16- byte blocksize
437
437
"""
438
438
# TODO: allow other blocksizes besides 16bytes?
439
439
def __init__ (self ,codebook1 , codebook2 ):
@@ -516,7 +516,7 @@ class CMAC:
516
516
in the list CMAC.supported_blocksizes.
517
517
The hashlength is equal to block size of the used block cipher.
518
518
519
- Usable with blockcihpers with a 8 or 16 byte blocksize
519
+ Usable with blockciphers with a 8 or 16- byte blocksize
520
520
"""
521
521
# TODO: move to hash module?
522
522
# TODO: change update behaviour to .update() and .digest() as for all hash modules?
0 commit comments