polarssl: add from /packages, update to 1.2.4, fix openssl compatibility
[openwrt.git] / package / libs / polarssl / patches / 310-fix_blowfish_key_len.patch
1 --- a/library/cipher_wrap.c
2 +++ b/library/cipher_wrap.c
3 @@ -642,7 +642,7 @@ const cipher_base_t blowfish_info = {
4  const cipher_info_t blowfish_cbc_info = {
5      POLARSSL_CIPHER_BLOWFISH_CBC,
6      POLARSSL_MODE_CBC,
7 -    32,
8 +    128,
9      "BF-CBC",
10      8,
11      8,
12 @@ -653,7 +653,7 @@ const cipher_info_t blowfish_cbc_info = 
13  const cipher_info_t blowfish_cfb64_info = {
14      POLARSSL_CIPHER_BLOWFISH_CFB64,
15      POLARSSL_MODE_CFB,
16 -    32,
17 +    128,
18      "BF-CFB64",
19      8,
20      8,
21 @@ -665,7 +665,7 @@ const cipher_info_t blowfish_cfb64_info 
22  const cipher_info_t blowfish_ctr_info = {
23      POLARSSL_CIPHER_BLOWFISH_CTR,
24      POLARSSL_MODE_CTR,
25 -    32,
26 +    128,
27      "BF-CTR",
28      8,
29      8,