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