Exemplo n.º 1
0
 public AsymmetricSecurityKey GetAsymmetricKey()
 {
     switch (handle_type)
     {
     case NativeInfocardHandleType.Asymmetric:
         NativeAsymmetricCryptoParameters a = (NativeAsymmetricCryptoParameters)Marshal.PtrToStructure(parameters, typeof(NativeAsymmetricCryptoParameters));
         return(new AsymmetricProofTokenSecurityKey(a, this));
     }
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
 public AsymmetricProofTokenSecurityKey(NativeAsymmetricCryptoParameters parameters, NativeInfocardCryptoHandle handle)
 {
     this.parameters = parameters;
     this.handle     = handle;
 }
		public AsymmetricProofTokenSecurityKey (NativeAsymmetricCryptoParameters parameters, NativeInfocardCryptoHandle handle)
		{
			this.parameters = parameters;
			this.handle = handle;
		}