ViewVC Help
View File
|
Revision Log
|
Show Annotations
|
Download File
/
cvs
/
OpenSSL
/
t
/
05_HMAC.t
Revision:
1.1
Committed:
Sat Oct 27 01:53:25 2001 UTC
(22 years, 7 months ago) by
stefan
Content type:
application/x-troff
Branch:
MAIN
CVS Tags:
BEFORE_5_8_REGEX_FIX, HEAD
Log Message:
*** empty log message ***
File Contents
#
User
Rev
Content
1
stefan
1.1
2
use Test;
3
BEGIN { plan tests => 2 };
4
use OpenSSL::HMAC qw(hmac_hex sha1_hex new_hmac);
5
6
ok(hmac_hex("sha1", "pwdx", "seppl") eq hmac_hex('sha1', 'pwd', "seppl") ? 0 : 1);
7
ok(hmac_hex("sha1", "pwd", "seppl") eq hmac_hex('sha1', 'pwd', "seppl") ? 1 : 0);