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