aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-22 13:15:12 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-22 13:15:12 -0600
commit40c7f9eb8eafe9eac39f86d6f36233375e938cdb (patch)
treef7249d01256553ad0ebe43cf8d9ab2daabc7b4d8
parenteddef3af8efe6f9b94139b5ab64d5e7a16c1a547 (diff)
downloadcryptography-40c7f9eb8eafe9eac39f86d6f36233375e938cdb.tar.gz
cryptography-40c7f9eb8eafe9eac39f86d6f36233375e938cdb.tar.bz2
cryptography-40c7f9eb8eafe9eac39f86d6f36233375e938cdb.zip
GCM bindings for CommonCrypto
-rw-r--r--cryptography/hazmat/bindings/commoncrypto/common_cryptor.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/commoncrypto/common_cryptor.py b/cryptography/hazmat/bindings/commoncrypto/common_cryptor.py
index ef0e7e10..e8b6cf91 100644
--- a/cryptography/hazmat/bindings/commoncrypto/common_cryptor.py
+++ b/cryptography/hazmat/bindings/commoncrypto/common_cryptor.py
@@ -83,6 +83,15 @@ CCCryptorStatus CCCryptorUpdate(CCCryptorRef, const void *, size_t, void *,
size_t, size_t *);
CCCryptorStatus CCCryptorFinal(CCCryptorRef, void *, size_t, size_t *);
CCCryptorStatus CCCryptorRelease(CCCryptorRef);
+
+CCCryptorStatus CCCryptorGCMAddIV(CCCryptorRef, const void *, size_t);
+CCCryptorStatus CCCryptorGCMAddAAD(CCCryptorRef, const void *, size_t);
+CCCryptorStatus CCCryptorGCMEncrypt(CCCryptorRef, const void *, size_t,
+ void *);
+CCCryptorStatus CCCryptorGCMDecrypt(CCCryptorRef, const void *, size_t,
+ void *);
+CCCryptorStatus CCCryptorGCMFinal(CCCryptorRef, const void *, size_t *);
+CCCryptorStatus CCCryptorGCMReset(CCCryptorRef);
"""
MACROS = """