diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-04-05 06:50:16 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-04-05 06:50:16 +0200 |
commit | 5a47ae79c7a70ac3c4b4d658623e1e8d112673c4 (patch) | |
tree | 4f78193d0b86d1e50a78e4ea82e4fa7cd31d0dd2 /libsodium-pr70.patch | |
parent | ae39e75a355f627506c9dab3a4e21178007109da (diff) |
php-pecl-libsodium: 1.0.3
Diffstat (limited to 'libsodium-pr70.patch')
-rw-r--r-- | libsodium-pr70.patch | 39 |
1 files changed, 0 insertions, 39 deletions
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 <fedora@famillecollet.com> -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-- |