示例#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();
 }
示例#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;
		}