From: Andrey Andreev Date: Wed, 5 Mar 2014 10:47:11 +0000 (+0200) Subject: Add test for bug #62102 / RFC 2144 X-Git-Tag: php-5.6.0beta1~3^2~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb8dfc85cecedf9c52b8e2bd03f765231dcb1570;p=php Add test for bug #62102 / RFC 2144 Using test vectors from RFC 2144, section B.1 (http://tools.ietf.org/rfc/rfc2144.txt) --- diff --git a/ext/mcrypt/tests/bug62102_rfc2144.phpt b/ext/mcrypt/tests/bug62102_rfc2144.phpt new file mode 100644 index 0000000000..d2bfa7b766 --- /dev/null +++ b/ext/mcrypt/tests/bug62102_rfc2144.phpt @@ -0,0 +1,25 @@ +--TEST-- +RFC 2144 test vectors for CAST-128 in ECB mode (bug #62102) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +128-bit: 238b4fe5847e44b2 +80-bit: eb6a711a2c02271b +40-bit: 7ac816d16e9b302e