Salted S2K key generation (OpenPGP document, RFC 2440)
calc(string $hash, string $password, string $salt, int $bytes) : string
string
The hash algorithm to be used by HMAC
string
The source password/key
string
The salt of the algorithm
int
The output size in bytes
\Zend\Crypt\Key\Derivation\Exception\InvalidArgumentException |
---|
string
$supportedMhashAlgos