diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-22 12:51:54 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-01-22 12:51:54 -0800 |
commit | 692e3de12283e6e340a4c12078a8ebeb8d31cab9 (patch) | |
tree | f7249d01256553ad0ebe43cf8d9ab2daabc7b4d8 | |
parent | eddef3af8efe6f9b94139b5ab64d5e7a16c1a547 (diff) | |
parent | 40c7f9eb8eafe9eac39f86d6f36233375e938cdb (diff) | |
download | cryptography-692e3de12283e6e340a4c12078a8ebeb8d31cab9.tar.gz cryptography-692e3de12283e6e340a4c12078a8ebeb8d31cab9.tar.bz2 cryptography-692e3de12283e6e340a4c12078a8ebeb8d31cab9.zip |
Merge pull request #494 from reaperhulk/commoncrypto-gcm-bindings
GCM bindings for CommonCrypto
-rw-r--r-- | cryptography/hazmat/bindings/commoncrypto/common_cryptor.py | 9 |
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 = """ |