diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-26 21:28:41 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-26 21:28:41 +0200 |
commit | 5b1852a0214cec5b3b6ed5fd962276b94b369e56 (patch) | |
tree | c27a541a8c813e70e10518f5e46aeafba8a32b92 /package/grub/patches/patch-lib_libgcrypt-grub_cipher_camellia_c | |
parent | 6bf65192a05ccee7e50ef97eacdab33c2c5e011b (diff) |
grub: add needed stuff for static build and busybox grep
Diffstat (limited to 'package/grub/patches/patch-lib_libgcrypt-grub_cipher_camellia_c')
-rw-r--r-- | package/grub/patches/patch-lib_libgcrypt-grub_cipher_camellia_c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/grub/patches/patch-lib_libgcrypt-grub_cipher_camellia_c b/package/grub/patches/patch-lib_libgcrypt-grub_cipher_camellia_c new file mode 100644 index 000000000..8b3594525 --- /dev/null +++ b/package/grub/patches/patch-lib_libgcrypt-grub_cipher_camellia_c @@ -0,0 +1,29 @@ +--- grub-1.98.orig/lib/libgcrypt-grub/cipher/camellia.c 2010-03-06 21:52:26.000000000 +0100 ++++ grub-1.98/lib/libgcrypt-grub/cipher/camellia.c 2010-06-26 20:49:20.915278106 +0200 +@@ -26,6 +26,7 @@ + */ + + ++#include <grub/misc.h> + #include "camellia.h" + + /* u32 must be 32bit word */ +@@ -946,13 +947,13 @@ void camellia_setup192(const unsigned ch + unsigned char kk[32]; + u32 krll, krlr, krrl,krrr; + +- memcpy(kk, key, 24); +- memcpy((unsigned char *)&krll, key+16,4); +- memcpy((unsigned char *)&krlr, key+20,4); ++ grub_memcpy(kk, key, 24); ++ grub_memcpy((unsigned char *)&krll, key+16,4); ++ grub_memcpy((unsigned char *)&krlr, key+20,4); + krrl = ~krll; + krrr = ~krlr; +- memcpy(kk+24, (unsigned char *)&krrl, 4); +- memcpy(kk+28, (unsigned char *)&krrr, 4); ++ grub_memcpy(kk+24, (unsigned char *)&krrl, 4); ++ grub_memcpy(kk+28, (unsigned char *)&krrr, 4); + camellia_setup256(kk, subkey); + return; + } |