Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typos #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pyaes/aes.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def encrypt(self, plaintext):
return _bytes_to_string(encrypted)

def decrypt(self, ciphertext):
# AES-OFB is symetric
# AES-OFB is symmetric
return self.encrypt(ciphertext)


Expand All @@ -532,11 +532,11 @@ class AESModeOfOperationCTR(AESStreamModeOfOperation):
o The counter must be the same size as the key size (ie. len(key))
o Each block independant of the other, so a corrupt byte will not
damage future blocks.
o Each block has a uniue counter value associated with it, which
o Each block has a unique counter value associated with it, which
contributes to the encrypted value, so no data patterns are
leaked.
o Also known as: Counter Mode (CM), Integer Counter Mode (ICM) and
Segmented Integer Counter (SIC
Segmented Integer Counter (SIC).

Security Notes:
o This method (and CBC) ARE recommended.
Expand Down Expand Up @@ -575,7 +575,7 @@ def encrypt(self, plaintext):
return _bytes_to_string(encrypted)

def decrypt(self, crypttext):
# AES-CTR is symetric
# AES-CTR is symmetric
return self.encrypt(crypttext)


Expand Down