/// <summary> /// Default constructor /// </summary> public KeyPairSetupDesignModel() { SelectedOperation = AsymmetricOperation.Encryption; Algorithims = BaseMsdnAsymmetric.GetAlgorthims(SelectedOperation); //Algorithims = IAsymmetricCipher.GetBouncyAlgorthims(SelectedOperation); SelectedAlgorithimIndex = 0; BaseMsdnAsymmetric.GetCipher(Algorithims[SelectedAlgorithimIndex]); PrivateKey = ByteConvert.HexStringToBytes("FFFFFFFFF111000"); PublicKey = ByteConvert.HexStringToBytes("00000000FFFFFFF"); }
/// <summary> /// Initialize any lists /// </summary> private void InitializeLists() { switch (Api) { case CryptographyApi.MSDN: Algorithims = BaseMsdnAsymmetric.GetAlgorthims(SelectedOperation); break; case CryptographyApi.BouncyCastle: Algorithims = BaseBouncyAsymmetric.GetAlgorthims(SelectedOperation); break; default: Debugger.Break(); break; } ChangedAlgorithim(); }