public CryptoExample()
 {
     var version = VirgilVersion.AsString();
     var pfs = new Virgil.Crypto.Pfs.VirgilPFS();
     var cryptoHighLevel = new Virgil.Crypto.VirgilCrypto();
     var pythia = new Virgil.Crypto.Pythia.VirgilPythia();
 }
Example #2
0
 public static void Main(string[] args)
 {
     System.Console.WriteLine("VirgilVersion=" + VirgilVersion.AsString());
     var s = new Virgil.Crypto.Pfs.VirgilPFS();
     var v = new Virgil.Crypto.VirgilCrypto();
     var p = new Virgil.Crypto.Pythia.VirgilPythia();
 }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            System.Console.WriteLine("VirgilVersion=" + VirgilVersion.AsString());
            var s = new Virgil.Crypto.Pfs.VirgilPFS();
            var v = new Virgil.Crypto.VirgilCrypto();
            var p = new Virgil.Crypto.Pythia.VirgilPythia();

            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById <Button>(Resource.Id.myButton);

            button.Click += delegate { button.Text = $"{count++} clicks!"; };
        }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VirgilAccessTokenSigner" /> class.
 /// </summary>
 public VirgilAccessTokenSigner()
 {
     virgilCrypto = new VirgilCrypto();
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VirgilCardCrypto" /> class.
 /// </summary>
 public VirgilCardCrypto()
 {
     this.virgilCrypto = new VirgilCrypto();
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VirgilPrivateKeyExporter" /> class.
 /// </summary>
 /// <param name="passw">password that is used for export and import of <see cref="IPrivateKey"/>.</param>
 /// <param name="crypto">the instance of <see cref="VirgilCrypto"/>
 /// that is used for export and import of <see cref="IPrivateKey"/>.</param>
 public VirgilPrivateKeyExporter(VirgilCrypto crypto, string passw = null)
 {
     virgilCrypto = crypto;
     password     = passw;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VirgilPrivateKeyExporter" /> class.
 /// </summary>
 /// <param name="passw">password that is used for export and import of <see cref="IPrivateKey"/>.</param>
 public VirgilPrivateKeyExporter(string passw = null)
 {
     virgilCrypto = new VirgilCrypto();
     password     = passw;
 }