dlech.SshAgentLib.PpkFormatterExt.TryParsePrivateKeyAlgorithm C# (CSharp) Метод

TryParsePrivateKeyAlgorithm() публичный статический Метод

public static TryParsePrivateKeyAlgorithm ( this aString, PpkFormatter &aAlgorithm ) : bool
aString this
aAlgorithm PpkFormatter
Результат bool
        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;
              }
        }