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