Lines Matching refs:hash
75 # HMAC (SHA - caveat: we only support hash output equal to the block size of
76 # of the hash - we do not support truncation of the hash; to support
166 # $2: hash algo
180 # Creating a hash
182 # $2: hash type in the form documented in openssl's dgst(1ssl) - e.g.
184 # return: hash in hex form
185 my $hash;
219 # $2: length of the hash to be calculated in bits
221 # $4: hash type (1 - SHA1, 224 - SHA224, and so on)
259 # return: file created, hash with keys of P, Q, G in hex format
265 # return: hash of digest information in hex format with Y, R, S as keys
333 my $hash = hex2bin($pt);
335 return pipe_through_program($hash, "openssl dgst -$cipher -hex");
1091 # $2: hash
1092 # $3: hash length (undef if not applicable)
1104 $out .= "MD = " . &$hash($pt, $cipher) . "\n";
1108 # Known Answer Test for HMAC hash
1123 # This is a conversion table from the expected hash output size
1124 # to the assumed hash type - we only define here the block size of
1333 # $2: hash
1353 $md2 = &$hash($mi, $cipher);
1630 # this is my cipher/hash type
1636 # 3 - hash known answer test
1637 # 4 - hash Monte Carlo test
1790 die "Interface function hash for Hashing not defined for tested library"
1791 if (!defined($hash));
1798 die "Interface function hash for Hashing not defined for tested library"
1799 if (!defined($hash));
2187 $hash = \&openssl_hash;
2196 $hash = \&libgcrypt_hash;