Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: third_party/tlslite/tlslite/utils/aes.py

Issue 875683002: Implement AES-GCM in tlslite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/tlslite/tlslite/tlsrecordlayer.py ('k') | third_party/tlslite/tlslite/utils/aesgcm.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tlslite/tlslite/utils/aes.py
diff --git a/third_party/tlslite/tlslite/utils/aes.py b/third_party/tlslite/tlslite/utils/aes.py
index 95afaa340fe7cb9183b872cd299b2ad860f77c61..5a038fb9f18ecacf481890a776038e9f4204f5f1 100644
--- a/third_party/tlslite/tlslite/utils/aes.py
+++ b/third_party/tlslite/tlslite/utils/aes.py
@@ -12,6 +12,7 @@ class AES(object):
if len(IV) != 16:
raise AssertionError()
self.isBlockCipher = True
+ self.isAEAD = False
self.block_size = 16
self.implementation = implementation
if len(key)==16:
@@ -31,4 +32,4 @@ class AES(object):
#CBC-Mode decryption, returns plaintext
#WARNING: *MAY* modify the input as well
def decrypt(self, ciphertext):
- assert(len(ciphertext) % 16 == 0)
+ assert(len(ciphertext) % 16 == 0)
« no previous file with comments | « third_party/tlslite/tlslite/tlsrecordlayer.py ('k') | third_party/tlslite/tlslite/utils/aesgcm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698