Lines Matching refs:publicKey
74 … list($curveName, $publicKey, $privateKey, $comment) = Strings::unpackSSH2('ssis', $paddedKey);
80 'QA' => self::extractPoint("\0$publicKey", $curve),
93 list($curveName, $publicKey) = Strings::unpackSSH2('ss', $parsed['publicKey']);
97 $qa = self::extractPoint("\0" . $publicKey, $curve);
148 public static function savePublicKey(BaseCurve $curve, array $publicKey, array $options = []) argument
153 $key = Strings::packSSH2('ss', 'ssh-ed25519', $curve->encodePoint($publicKey));
165 $points = "\4" . $publicKey[0]->toBytes() . $publicKey[1]->toBytes();
188 …unction savePrivateKey(BigInteger $privateKey, BaseCurve $curve, array $publicKey, $password = '',… argument
198 $pubKey = $curve->encodePoint($publicKey);
200 $publicKey = Strings::packSSH2('ss', 'ssh-ed25519', $pubKey);
203 return self::wrapPrivateKey($publicKey, $privateKey, $password, $options);
208 $points = "\4" . $publicKey[0]->toBytes() . $publicKey[1]->toBytes();
209 $publicKey = self::savePublicKey($curve, $publicKey, ['binary' => true]);
213 return self::wrapPrivateKey($publicKey, $privateKey, $password, $options);