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) |