packages/libs/cyassl/patches/001-fix_buffer_overflow.patch
florian 683f436139 Add cyassl (#4341), thanks Raphael
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13615 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-12 14:54:26 +00:00

13 lines
761 B
Diff

diff -pruN cyassl-0.9.9.orig/ctaocrypt/include/hmac.h cyassl-0.9.9/ctaocrypt/include/hmac.h
--- cyassl-0.9.9.orig/ctaocrypt/include/hmac.h 2008-12-11 16:27:12.490140301 +0100
+++ cyassl-0.9.9/ctaocrypt/include/hmac.h 2008-12-11 16:27:50.318874180 +0100
@@ -61,7 +61,7 @@ typedef struct Hmac {
Hash hash;
word32 ipad[HMAC_BLOCK_SIZE / sizeof(word32)]; /* same block size all*/
word32 opad[HMAC_BLOCK_SIZE / sizeof(word32)];
- word32 innerHash[SHA_DIGEST_SIZE / sizeof(word32)]; /* max size */
+ word32 innerHash[SHA256_DIGEST_SIZE / sizeof(word32)]; /* max size */
byte macType; /* md5 sha or sha256 */
byte innerHashKeyed; /* keyed flag */
} Hmac;