patch-lib_libgcrypt-grub_cipher_twofish_c 896 B

1234567891011121314151617181920
  1. --- grub-1.98.orig/lib/libgcrypt-grub/cipher/twofish.c 2010-03-06 21:52:26.000000000 +0100
  2. +++ grub-1.98/lib/libgcrypt-grub/cipher/twofish.c 2010-06-26 20:30:05.671278033 +0200
  3. @@ -932,7 +932,7 @@ main()
  4. twofish_encrypt (&ctx, buffer[1], buffer[1]);
  5. }
  6. }
  7. - encrypt_msg = memcmp (buffer, test_encrypt, sizeof (test_encrypt)) ?
  8. + encrypt_msg = grub_memcmp (buffer, test_encrypt, sizeof (test_encrypt)) ?
  9. "encryption failure!\n" : "encryption OK!\n";
  10. /* Decryption test. */
  11. @@ -954,7 +954,7 @@ main()
  12. /* Stop the timer, and print results. */
  13. timer = clock () - timer;
  14. printf (encrypt_msg);
  15. - printf (memcmp (buffer, test_decrypt, sizeof (test_decrypt)) ?
  16. + printf (grub_memcmp (buffer, test_decrypt, sizeof (test_decrypt)) ?
  17. "decryption failure!\n" : "decryption OK!\n");
  18. printf ("elapsed time: %.1f s.\n", (float) timer / CLOCKS_PER_SEC);