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

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
« no previous file with comments | « third_party/tlslite/tlslite/utils/pycrypto_aesgcm.py ('k') | third_party/tlslite/tlslite/utils/rc4.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..80a5fd57924625c3eb66dc1c12d066baa367d785
--- /dev/null
+++ b/third_party/tlslite/tlslite/utils/python_aesgcm.py
@@ -0,0 +1,10 @@
+# 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
+
+def new(key):
+ return AESGCM(key, "python", rijndael(key, 16).encrypt)
« no previous file with comments | « third_party/tlslite/tlslite/utils/pycrypto_aesgcm.py ('k') | third_party/tlslite/tlslite/utils/rc4.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698