Fix a regression in Asterisk 1.6 related to the use of AES encryption.
authorRussell Bryant <russell@russellbryant.com>
Fri, 15 Feb 2008 23:14:32 +0000 (23:14 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 15 Feb 2008 23:14:32 +0000 (23:14 +0000)
1024 was used instead of 128 when using AES from OpenSSL.  Many thanks
to d1mas for figuring this one out!

(closes issue #11946)
Reported by: bbhoss
Patches:
      v1-11946.patch uploaded by dimas (license 88)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103739 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/aes.h

index 25e7615..4a85669 100644 (file)
@@ -37,9 +37,9 @@
 typedef AES_KEY ast_aes_encrypt_key;
 typedef AES_KEY ast_aes_decrypt_key;
 
 typedef AES_KEY ast_aes_encrypt_key;
 typedef AES_KEY ast_aes_decrypt_key;
 
-#define ast_aes_encrypt_key(key, context) AES_set_encrypt_key(key, 1024, context)
+#define ast_aes_encrypt_key(key, context) AES_set_encrypt_key(key, 128, context)
 
 
-#define ast_aes_decrypt_key(key, context) AES_set_decrypt_key(key, 1024, context)
+#define ast_aes_decrypt_key(key, context) AES_set_decrypt_key(key, 128, context)
 
 #define ast_aes_encrypt(in, out, context) AES_encrypt(in, out, context)
 
 
 #define ast_aes_encrypt(in, out, context) AES_encrypt(in, out, context)