public static bool TryParsePrivateKeyAlgorithm(this string aString,
ref PpkFormatter.PrivateKeyAlgorithm aAlgorithm)
{
switch (aString) {
case PpkFormatter.ALGORITHM_NONE:
aAlgorithm = PpkFormatter.PrivateKeyAlgorithm.None;
return true;
case PpkFormatter.ALGORITHM_AES256_CBC:
aAlgorithm = PpkFormatter.PrivateKeyAlgorithm.AES256_CBC;
return true;
default:
return false;
}
}