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

Unified Diff: third_party/tlslite/tlslite/utils/python_aesgcm.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
Index: third_party/tlslite/tlslite/utils/python_aesgcm.py
diff --git a/third_party/tlslite/tlslite/utils/python_aesgcm.py b/third_party/tlslite/tlslite/utils/python_aesgcm.py
new file mode 100644
index 0000000000000000000000000000000000000000..dc30cd23f57ef47a67ad530b8fdf44a2d4d90cd0
--- /dev/null
+++ b/third_party/tlslite/tlslite/utils/python_aesgcm.py
@@ -0,0 +1,11 @@
+# Author: Google
+# See the LICENSE file for legal information regarding use of this file.
+
+"""Pure-Python AES-GCM implementation."""
+
+from .aesgcm import AESGCM
+from .rijndael import rijndael
+
+
agl 2015/01/29 19:38:17 extra blank line not needed?
davidben 2015/01/29 21:40:59 Done.
+def new(key):
+ return AESGCM(key, "python", rijndael(key, 16).encrypt)

Powered by Google App Engine
This is Rietveld 408576698