Index: srtp/srtp/ekt.c |
diff --git a/srtp/srtp/ekt.c b/srtp/srtp/ekt.c |
index df53bd139195b72589eb3693d8c911ab7ec9b2ea..03fd48122958851d6637cde392ca28d9d3e73376 100644 |
--- a/srtp/srtp/ekt.c |
+++ b/srtp/srtp/ekt.c |
@@ -43,8 +43,8 @@ |
*/ |
-#include "err.h" |
#include "srtp_priv.h" |
+#include "err.h" |
#include "ekt.h" |
extern debug_module_t mod_srtp; |
@@ -148,10 +148,13 @@ ekt_stream_init_from_policy(ekt_stream_t stream_data, ekt_policy_t policy) { |
void |
aes_decrypt_with_raw_key(void *ciphertext, const void *key, int key_len) { |
+#ifndef OPENSSL |
+//FIXME: need to get this working through the crypto module interface |
aes_expanded_key_t expanded_key; |
aes_expand_decryption_key(key, key_len, &expanded_key); |
aes_decrypt(ciphertext, &expanded_key); |
+#endif |
} |
/* |
@@ -166,7 +169,6 @@ srtp_stream_init_from_ekt(srtp_stream_t stream, |
err_status_t err; |
const uint8_t *master_key; |
srtp_policy_t srtp_policy; |
- unsigned master_key_len; |
uint32_t roc; |
/* |
@@ -178,7 +180,6 @@ srtp_stream_init_from_ekt(srtp_stream_t stream, |
if (stream->ekt->data->ekt_cipher_type != EKT_CIPHER_AES_128_ECB) |
return err_status_bad_param; |
- master_key_len = 16; |
/* decrypt the Encrypted Master Key field */ |
master_key = srtcp_packet_get_emk_location(srtcp_hdr, pkt_octet_len); |