From 5a47ae79c7a70ac3c4b4d658623e1e8d112673c4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 5 Apr 2016 06:50:16 +0200 Subject: php-pecl-libsodium: 1.0.3 --- libsodium-pr70.patch | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 libsodium-pr70.patch (limited to 'libsodium-pr70.patch') diff --git a/libsodium-pr70.patch b/libsodium-pr70.patch deleted file mode 100644 index b97287f..0000000 --- a/libsodium-pr70.patch +++ /dev/null @@ -1,39 +0,0 @@ -From ca45bd4a55541d58136c21b38b9b90e750fedfbc Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Mon, 30 Nov 2015 18:31:42 +0100 -Subject: [PATCH] fix test - ---- - tests/crypto_auth.phpt | 12 ++++-------- - 1 file changed, 4 insertions(+), 8 deletions(-) - -diff --git a/tests/crypto_auth.phpt b/tests/crypto_auth.phpt -index c72451e..76f30eb 100644 ---- a/tests/crypto_auth.phpt -+++ b/tests/crypto_auth.phpt -@@ -18,13 +18,9 @@ var_dump(\Sodium\crypto_auth_verify($mac, $badmsg, $key)); - - // Let's flip a bit pseudo-randomly - $badmsg = $msg; --$badmsg[mt_rand(0, 999)] = \chr( -- \ord($msg[0]) ^ ( -- // Mask out higher bits (thus 256 => 0) -- 0xFF & ( -- // 1, 2, 4, 8, 16, 32, 64, 128, 256 -- 1 << mt_rand(0, 8) -- ) -+$badmsg[$i=mt_rand(0, 999)] = \chr( -+ \ord($msg[$i]) ^ ( -+ 1 << mt_rand(0, 7) - ) - ); - -@@ -32,7 +28,7 @@ var_dump(\Sodium\crypto_auth_verify($mac, $badmsg, $key)); - - // Now let's change a bit in the MAC - $badmac = $mac; --$badmac[0] = \chr(\ord($badmsg[0]) ^ 0x80); -+$badmac[0] = \chr(\ord($badmac[0]) ^ 0x80); - var_dump(\Sodium\crypto_auth_verify($badmac, $msg, $key)); - ?> - --EXPECT-- -- cgit