3 * The standard Key Derivation Function interface
7 * @category PHPCryptLib
9 * @subpackage Derivation
10 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
11 * @copyright 2011 The Authors
12 * @license http://www.opensource.org/licenses/mit-license.html MIT Licenses
13 * @version Build @@version@@
16 namespace CryptLib\Key\Derivation
;
19 * The standard Key Derivation Function interface
21 * @category PHPCryptLib
23 * @subpackage Derivation
24 * @author Anthony Ferrara <ircmaxell@ircmaxell.com>
30 * Derive a key of the specified length based on the inputted secret
32 * @param string $secret The secret to base the key on
33 * @param int $length The length of the key to derive
34 * @param string $other Additional data to append to the key
36 * @return string The generated key
38 public function derive($secret, $length, $other = '');