/// <summary> /// Constructor. Convert SspiSecurityPackageContextKeyInfo to SecurityPackageContextKeyInfo. /// </summary> /// <param name="contextKeyInfo"></param> internal SecurityPackageContextKeyInfo(SspiSecurityPackageContextKeyInfo contextKeyInfo) { this.SignatureAlgorithmName = Marshal.PtrToStringUni(contextKeyInfo.sEncryptAlgorithmName); this.EncryptAlgorithmName = Marshal.PtrToStringUni(contextKeyInfo.sSignatureAlgorithmName); this.KeySize = contextKeyInfo.KeySize; this.SignatureAlgorithm = contextKeyInfo.SignatureAlgorithm; this.EncryptAlgorithm = contextKeyInfo.EncryptAlgorithm; }
/// <summary> /// Constructor. Convert SspiSecurityPackageContextKeyInfo to SecurityPackageContextKeyInfo. /// </summary> /// <param name="contextKeyInfo"></param> internal SecurityPackageContextKeyInfo(SspiSecurityPackageContextKeyInfo contextKeyInfo) { this.SignatureAlgorithmName = Marshal.PtrToStringUni(contextKeyInfo.sEncryptAlgorithmName); this.EncryptAlgorithmName = Marshal.PtrToStringUni(contextKeyInfo.sSignatureAlgorithmName); this.KeySize = contextKeyInfo.KeySize; this.SignatureAlgorithm = contextKeyInfo.SignatureAlgorithm; this.EncryptAlgorithm = contextKeyInfo.EncryptAlgorithm; }