patch-lib_libgcrypt-grub_cipher_serpent_c 882 B

1234567891011121314151617181920
  1. --- grub-1.98.orig/lib/libgcrypt-grub/cipher/serpent.c 2010-03-06 21:52:26.000000000 +0100
  2. +++ grub-1.98/lib/libgcrypt-grub/cipher/serpent.c 2010-06-26 20:29:51.523275940 +0200
  3. @@ -917,7 +917,7 @@ serpent_test (void)
  4. (const u32 *) test_data[i].text_plain,
  5. (u32 *) scratch);
  6. - if (memcmp (scratch, test_data[i].text_cipher, sizeof (serpent_block_t)))
  7. + if (grub_memcmp (scratch, test_data[i].text_cipher, sizeof (serpent_block_t)))
  8. switch (test_data[i].key_length)
  9. {
  10. case 16:
  11. @@ -931,7 +931,7 @@ serpent_test (void)
  12. serpent_decrypt_internal (&context,
  13. (const u32 *) test_data[i].text_cipher,
  14. (u32 *) scratch);
  15. - if (memcmp (scratch, test_data[i].text_plain, sizeof (serpent_block_t)))
  16. + if (grub_memcmp (scratch, test_data[i].text_plain, sizeof (serpent_block_t)))
  17. switch (test_data[i].key_length)
  18. {
  19. case 16: