Lines Matching refs:password
82 * @param string $password
86 private static function generateV2Key($password, $length) argument
91 $temp = pack('Na*', $sequence++, $password);
101 * @param string $password
108 private static function generateV3Key($password, $flavour, $memory, $passes, $salt) argument
126 $temp = sodium_crypto_pwhash($length, $password, $salt, $passes, $memory << 10, $flavour);
140 * @param string $password
143 public static function load($key, $password) argument
243 extract(self::generateV3Key($password, $flavour, $memory, $passes, $salt));
247 $symkey = self::generateV2Key($password, 32);
249 $hashkey .= $password;
294 * @param string $password
298 … protected static function wrapPrivateKey($public, $private, $type, $password, array $options = []) argument
300 $encryption = (!empty($password) || is_string($password)) ? 'aes256-cbc' : 'none';
316 if (empty($password) && !is_string($password)) {
340 extract(self::generateV3Key($password, 'Argon2id', 8192, 13, $salt));
347 $symkey = self::generateV2Key($password, 32);
349 $hashkey = 'putty-private-key-file-mac-key' . $password;