Key Derivation Functions
PBKDF1
PBKDF1($P, $S, $c, $dkLen, [$Hash])
Input:
P password, an octet string
S salt, an eight-octet string
c iteration count, a positive integer
dkLen intended length in octets of derived key, a positive integer,
at most 16 for MD2 or MD5 and 20 for SHA-1
Options:
Hash underlyting Digest::* instance
Output:
DK derived key, a dkLen-octet string
PBKDF2
PBKDF2($P, $S, $c, $dkLen, [$PRF])
Input:
P password, an octet string
S salt, an octet string
c iteration count, a positive integer
dkLen intended length in octets of the derived key, a positive integer,
at most (2**32 -1) x hLen
Output:
DK derived key, a dkLen-octet string
Options:
PRF underlying pseudorandom function (hLen denotes the length in
octets of the pseudorandom function output)
NAME
Crypt::PKCS5 - PKCS #5 v2.1: Password-Based Cryptography Standard.
SYNOPSIS
use Crypt::PKCS5;
DESCRIPTION
Blah blah blah.
SEE ALSO
http://www.rsa.com/rsalabs/node.asp?id=2127
AUTHOR
Hiroyuki OYAMA, <oyama@module.jp>
COPYRIGHT AND LICENSE
Copyright (C) 2007 by Hiroyuki OYAMA
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.