You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"ssh-ed25519", data =>newKeyHostAlgorithm("ssh-ed25519",newED25519Key(newSshKeyData(data)))},
393
-
{"ecdsa-sha2-nistp256", data =>newKeyHostAlgorithm("ecdsa-sha2-nistp256",newEcdsaKey(newSshKeyData(data)))},
394
-
{"ecdsa-sha2-nistp384", data =>newKeyHostAlgorithm("ecdsa-sha2-nistp384",newEcdsaKey(newSshKeyData(data)))},
395
-
{"ecdsa-sha2-nistp521", data =>newKeyHostAlgorithm("ecdsa-sha2-nistp521",newEcdsaKey(newSshKeyData(data)))},
396
390
#pragma warning disable SA1107// Code should not contain multiple statements on one line
397
-
{"rsa-sha2-512", data =>{varkey=newRsaKey(newSshKeyData(data));returnnewKeyHostAlgorithm("rsa-sha2-512",key,newRsaDigitalSignature(key,HashAlgorithmName.SHA512));}},
398
-
{"rsa-sha2-256", data =>{varkey=newRsaKey(newSshKeyData(data));returnnewKeyHostAlgorithm("rsa-sha2-256",key,newRsaDigitalSignature(key,HashAlgorithmName.SHA256));}},
hostAlgs.Add("[email protected]", data =>{varcert=newCertificate(data);returnnewCertificateHostAlgorithm("[email protected]",cert,hostAlgs);});
393
+
hostAlgs.Add("[email protected]", data =>{varcert=newCertificate(data);returnnewCertificateHostAlgorithm("[email protected]",cert,hostAlgs);});
394
+
hostAlgs.Add("[email protected]", data =>{varcert=newCertificate(data);returnnewCertificateHostAlgorithm("[email protected]",cert,hostAlgs);});
395
+
hostAlgs.Add("[email protected]", data =>{varcert=newCertificate(data);returnnewCertificateHostAlgorithm("[email protected]",cert,hostAlgs);});
396
+
hostAlgs.Add("[email protected]", data =>{varcert=newCertificate(data);returnnewCertificateHostAlgorithm("[email protected]",cert,newRsaDigitalSignature((RsaKey)cert.Key,HashAlgorithmName.SHA512),hostAlgs);});
397
+
hostAlgs.Add("[email protected]", data =>{varcert=newCertificate(data);returnnewCertificateHostAlgorithm("[email protected]",cert,newRsaDigitalSignature((RsaKey)cert.Key,HashAlgorithmName.SHA256),hostAlgs);});
398
+
hostAlgs.Add("[email protected]", data =>{varcert=newCertificate(data);returnnewCertificateHostAlgorithm("[email protected]",cert,hostAlgs);});
399
+
hostAlgs.Add("[email protected]", data =>{varcert=newCertificate(data);returnnewCertificateHostAlgorithm("[email protected]",cert,hostAlgs);});
400
+
hostAlgs.Add("ssh-ed25519", data =>newKeyHostAlgorithm("ssh-ed25519",newED25519Key(newSshKeyData(data))));
401
+
hostAlgs.Add("ecdsa-sha2-nistp256", data =>newKeyHostAlgorithm("ecdsa-sha2-nistp256",newEcdsaKey(newSshKeyData(data))));
402
+
hostAlgs.Add("ecdsa-sha2-nistp384", data =>newKeyHostAlgorithm("ecdsa-sha2-nistp384",newEcdsaKey(newSshKeyData(data))));
403
+
hostAlgs.Add("ecdsa-sha2-nistp521", data =>newKeyHostAlgorithm("ecdsa-sha2-nistp521",newEcdsaKey(newSshKeyData(data))));
404
+
hostAlgs.Add("rsa-sha2-512", data =>{varkey=newRsaKey(newSshKeyData(data));returnnewKeyHostAlgorithm("rsa-sha2-512",key,newRsaDigitalSignature(key,HashAlgorithmName.SHA512));});
405
+
hostAlgs.Add("rsa-sha2-256", data =>{varkey=newRsaKey(newSshKeyData(data));returnnewKeyHostAlgorithm("rsa-sha2-256",key,newRsaDigitalSignature(key,HashAlgorithmName.SHA256));});
406
+
hostAlgs.Add("ssh-rsa", data =>newKeyHostAlgorithm("ssh-rsa",newRsaKey(newSshKeyData(data))));
407
+
hostAlgs.Add("ssh-dss", data =>newKeyHostAlgorithm("ssh-dss",newDsaKey(newSshKeyData(data))));
399
408
#pragma warning restore SA1107// Code should not contain multiple statements on one line
400
-
{"ssh-rsa", data =>newKeyHostAlgorithm("ssh-rsa",newRsaKey(newSshKeyData(data)))},
401
-
{"ssh-dss", data =>newKeyHostAlgorithm("ssh-dss",newDsaKey(newSshKeyData(data)))},
@@ -186,7 +199,7 @@ public PrivateKeyFile(Stream privateKey)
186
199
/// This method calls <see cref="File.Open(string, FileMode)"/> internally, this method does not catch exceptions from <see cref="File.Open(string, FileMode)"/>.
@@ -200,6 +213,18 @@ public PrivateKeyFile(string fileName)
200
213
/// This method calls <see cref="File.Open(string, FileMode)"/> internally, this method does not catch exceptions from <see cref="File.Open(string, FileMode)"/>.
0 commit comments