5 my $hexdigest = "900150983cd24fb0d6963f7d28e17f72"; # ASCII
7 if (ord('A') == 193) { # EBCDIC
8 $hexdigest = "fe4ea0d98f9cd8d1d27f102a93cb0bb0"; # IBM-1047
11 print "not " unless Digest->MD5->add("abc")->hexdigest eq $hexdigest;
14 print "not " unless Digest->MD5->add("abc")->hexdigest eq $hexdigest;
18 # Not yet EBCDICified.
19 print "not " unless Digest->new("HMAC-MD5" => "Jefe")->add("what do ya want for nothing?")->hexdigest eq "750c783e6ab0b503eaa86e310a5db738";
22 print "ok 3\n" if $@ && $@ =~ /^Can't locate/;