summaryrefslogtreecommitdiff
path: root/package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-19 10:49:49 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-19 10:49:49 +0200
commit7907e3ee7302ac3fd428989a07b0df74f0c52853 (patch)
treee6de18488a687707667927065724372b40510d65 /package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c
parentb70fdbfbf1139605c22083b647337f2b16f62fc3 (diff)
parent61355d1f054c15673adeb62d32dfd4563f89c165 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c')
-rw-r--r--package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c b/package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c
new file mode 100644
index 000000000..88e9e761c
--- /dev/null
+++ b/package/grub/patches/patch-lib_libgcrypt-grub_cipher_twofish_c
@@ -0,0 +1,20 @@
+--- grub-1.98.orig/lib/libgcrypt-grub/cipher/twofish.c 2010-03-06 21:52:26.000000000 +0100
++++ grub-1.98/lib/libgcrypt-grub/cipher/twofish.c 2010-06-26 20:30:05.671278033 +0200
+@@ -932,7 +932,7 @@ main()
+ twofish_encrypt (&ctx, buffer[1], buffer[1]);
+ }
+ }
+- encrypt_msg = memcmp (buffer, test_encrypt, sizeof (test_encrypt)) ?
++ encrypt_msg = grub_memcmp (buffer, test_encrypt, sizeof (test_encrypt)) ?
+ "encryption failure!\n" : "encryption OK!\n";
+
+ /* Decryption test. */
+@@ -954,7 +954,7 @@ main()
+ /* Stop the timer, and print results. */
+ timer = clock () - timer;
+ printf (encrypt_msg);
+- printf (memcmp (buffer, test_decrypt, sizeof (test_decrypt)) ?
++ printf (grub_memcmp (buffer, test_decrypt, sizeof (test_decrypt)) ?
+ "decryption failure!\n" : "decryption OK!\n");
+ printf ("elapsed time: %.1f s.\n", (float) timer / CLOCKS_PER_SEC);
+