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

Unified Diff: srtp/crypto/include/aes_gcm_ossl.h

Issue 889083003: Update libsrtp to upstream 1.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Updated to libsrtp 1.5.1 Created 5 years, 10 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 | « srtp/crypto/include/aes_cbc.h ('k') | srtp/crypto/include/aes_icm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: srtp/crypto/include/aes_gcm_ossl.h
diff --git a/srtp/crypto/include/alloc.h b/srtp/crypto/include/aes_gcm_ossl.h
similarity index 79%
copy from srtp/crypto/include/alloc.h
copy to srtp/crypto/include/aes_gcm_ossl.h
index 5980eed6c13c6be2c43be308cc3e9d8a81676386..8e7711dc526c13fffa1b5b9382f1720c15d7436d 100644
--- a/srtp/crypto/include/alloc.h
+++ b/srtp/crypto/include/aes_gcm_ossl.h
@@ -1,14 +1,15 @@
/*
- * alloc.h
+ * aes_gcm_ossl.h
*
- * interface to memory allocation and deallocation, with optional debugging
+ * Header for AES Galois Counter Mode.
*
- * David A. McGrew
+ * John A. Foley
* Cisco Systems, Inc.
+ *
*/
/*
*
- * Copyright (c) 2001-2006 Cisco Systems, Inc.
+ * Copyright (c) 2013, Cisco Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -42,16 +43,21 @@
*
*/
+#ifndef AES_GCM_OSSL_H
+#define AES_GCM_OSSL_H
-#ifndef CRYPTO_ALLOC_H
-#define CRYPTO_ALLOC_H
-
-#include "datatypes.h"
+#include "cipher.h"
+#include "srtp.h"
+#include <openssl/evp.h>
+#include <openssl/aes.h>
-void *
-crypto_alloc(size_t size);
+typedef struct {
+ v256_t key;
+ int key_size;
+ int tag_len;
+ EVP_CIPHER_CTX ctx;
+ cipher_direction_t dir;
+} aes_gcm_ctx_t;
-void
-crypto_free(void *ptr);
+#endif /* AES_GCM_OSSL_H */
-#endif /* CRYPTO_ALLOC_H */
« no previous file with comments | « srtp/crypto/include/aes_cbc.h ('k') | srtp/crypto/include/aes_icm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698