ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra/Deliantra/Util.pm
(Generate patch)

Comparing deliantra/Deliantra/Deliantra/Util.pm (file contents):
Revision 1.5 by root, Thu Nov 15 10:02:44 2012 UTC vs.
Revision 1.6 by root, Fri Nov 16 07:01:32 2012 UTC

45 45
46Authenticates a (hashed) password using the given nonce. 46Authenticates a (hashed) password using the given nonce.
47 47
48=cut 48=cut
49 49
50sub auth_pw($$) { 50sub auth_pw($$$) {
51 my ($hash, $nonce1, $nonce2) = @_; 51 my ($hash, $nonce1, $nonce2) = @_;
52 52
53 # simple HMAC application 53 # simple HMAC application
54 Digest::SHA3::sha3_512 $nonce1 . Digest::SHA3::sha3_512 $nonce2 . $hash 54 Digest::SHA3::sha3_512 $nonce1 . Digest::SHA3::sha3_512 $nonce2 . $hash
55} 55}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines