summaryrefslogtreecommitdiffstats
path: root/thirdparties/mac/include/srtp/aes_icm_ossl.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparties/mac/include/srtp/aes_icm_ossl.h')
-rwxr-xr-x[-rw-r--r--]thirdparties/mac/include/srtp/aes_icm_ossl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/thirdparties/mac/include/srtp/aes_icm_ossl.h b/thirdparties/mac/include/srtp/aes_icm_ossl.h
index 89da7e0..b4ec40a 100644..100755
--- a/thirdparties/mac/include/srtp/aes_icm_ossl.h
+++ b/thirdparties/mac/include/srtp/aes_icm_ossl.h
@@ -50,12 +50,21 @@
#include <openssl/evp.h>
#include <openssl/aes.h>
+#ifdef OPENSSL_IS_BORINGSSL
+// BoringSSL doesn't support AES-192, cipher will be disabled
+#define SRTP_NO_AES192
+#endif
+
#define SALT_SIZE 14
#define AES_128_KEYSIZE AES_BLOCK_SIZE
+#ifndef SRTP_NO_AES192
#define AES_192_KEYSIZE AES_BLOCK_SIZE + AES_BLOCK_SIZE / 2
+#endif
#define AES_256_KEYSIZE AES_BLOCK_SIZE * 2
#define AES_128_KEYSIZE_WSALT AES_128_KEYSIZE + SALT_SIZE
+#ifndef SRTP_NO_AES192
#define AES_192_KEYSIZE_WSALT AES_192_KEYSIZE + SALT_SIZE
+#endif
#define AES_256_KEYSIZE_WSALT AES_256_KEYSIZE + SALT_SIZE
typedef struct {
@@ -67,6 +76,9 @@ typedef struct {
} aes_icm_ctx_t;
err_status_t aes_icm_openssl_set_iv(aes_icm_ctx_t *c, void *iv, int dir);
+err_status_t aes_icm_openssl_context_init(aes_icm_ctx_t *c, const uint8_t *key, int len);
+err_status_t aes_icm_output(aes_icm_ctx_t *c, uint8_t *buffer, int num_octets_to_output);
+uint16_t aes_icm_bytes_encrypted(aes_icm_ctx_t *c);
#endif /* AES_ICM_H */
OpenPOWER on IntegriCloud