50 references to SafeCryptMsgHandle
System.Security.Cryptography.Pkcs (50)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (24)
744
internal static partial bool CryptMsgControl(global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
hCryptMsg, int dwFlags, global::Interop.Crypt32.MsgControlType dwCtrlType, ref global::Interop.Crypt32.CMSG_CTRL_DECRYPT_PARA pvCtrlPara)
753
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedIn __hCryptMsg_native__marshaller = new();
791
internal static partial bool CryptMsgControl(global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
hCryptMsg, int dwFlags, global::Interop.Crypt32.MsgControlType dwCtrlType, ref global::Interop.Crypt32.CMSG_CTRL_KEY_AGREE_DECRYPT_PARA pvCtrlPara)
800
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedIn __hCryptMsg_native__marshaller = new();
838
internal static partial bool CryptMsgGetParam(global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
hCryptMsg, global::Interop.Crypt32.CryptMsgParamType dwParamType, int dwIndex, out int pvData, ref int pcbData)
848
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedIn __hCryptMsg_native__marshaller = new();
887
internal static unsafe partial bool CryptMsgGetParam(global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
hCryptMsg, global::Interop.Crypt32.CryptMsgParamType dwParamType, int dwIndex, byte* pvData, ref int pcbData)
896
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedIn __hCryptMsg_native__marshaller = new();
934
internal static partial bool CryptMsgGetParam(global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
hCryptMsg, global::Interop.Crypt32.CryptMsgParamType dwParamType, int dwIndex, out global::Interop.Crypt32.CryptMsgType pvData, ref int pcbData)
944
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedIn __hCryptMsg_native__marshaller = new();
983
internal static partial bool CryptMsgGetParam(global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
hCryptMsg, global::Interop.Crypt32.CryptMsgParamType dwParamType, int dwIndex, nint pvData, ref int pcbData)
992
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedIn __hCryptMsg_native__marshaller = new();
1030
internal static partial global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
CryptMsgOpenToDecode(global::Interop.Crypt32.MsgEncodingType dwMsgEncodingType, int dwFlags, int dwMsgType, nint hCryptProv, nint pRecipientInfo, nint pStreamInfo)
1036
global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
__retVal = default;
1039
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1077
internal static unsafe partial global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
CryptMsgOpenToEncode(global::Interop.Crypt32.MsgEncodingType dwMsgEncodingType, int dwFlags, global::Interop.Crypt32.CryptMsgType dwMsgType, global::Interop.Crypt32.CMSG_ENVELOPED_ENCODE_INFO* pvMsgEncodeInfo, string pszInnerContentObjID, nint pStreamInfo)
1084
global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
__retVal = default;
1087
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedOut __retVal_native__marshaller = new();
1132
internal static partial bool CryptMsgUpdate(global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
hCryptMsg, byte[] pbData, int cbData, bool fFinal)
1142
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedIn __hCryptMsg_native__marshaller = new();
1181
internal static partial bool CryptMsgUpdate(global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
hCryptMsg, nint pbData, int cbData, bool fFinal)
1191
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedIn __hCryptMsg_native__marshaller = new();
1228
internal static partial bool CryptMsgUpdate(global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
hCryptMsg, ref byte pbData, int cbData, bool fFinal)
1238
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCryptMsgHandle
>.ManagedToUnmanagedIn __hCryptMsg_native__marshaller = new();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.cs (2)
13
SafeCryptMsgHandle
hCryptMsg,
31
private
SafeCryptMsgHandle
_hCryptMsg;
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decode.cs (1)
28
SafeCryptMsgHandle
? hCryptMsg = null;
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.DecodeRecipients.cs (1)
17
private static RecipientInfoCollection CreateRecipientInfos(
SafeCryptMsgHandle
hCryptMsg)
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (7)
33
public static unsafe byte[] GetMsgParamAsByteArray(this
SafeCryptMsgHandle
hCryptMsg, CryptMsgParamType paramType, int index = 0)
50
public static SafeHandle GetMsgParamAsMemory(this
SafeCryptMsgHandle
hCryptMsg, CryptMsgParamType paramType, int index = 0)
80
public static CryptMsgType GetMessageType(this
SafeCryptMsgHandle
hCryptMsg)
89
public static int GetVersion(this
SafeCryptMsgHandle
hCryptMsg)
105
public static ContentInfo GetContentInfo(this
SafeCryptMsgHandle
hCryptMsg)
124
public static X509Certificate2Collection GetOriginatorCerts(this
SafeCryptMsgHandle
hCryptMsg)
335
public static CryptographicAttributeObjectCollection GetUnprotectedAttributes(this
SafeCryptMsgHandle
hCryptMsg)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (1)
31
using (
SafeCryptMsgHandle
hCryptMsg = Interop.Crypt32.CryptMsgOpenToDecode(MsgEncodingType.All, 0, 0, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero))
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (3)
21
using (
SafeCryptMsgHandle
hCryptMsg = EncodeHelpers.CreateCryptMsgHandleToEncode(recipients, contentInfo.ContentType, contentEncryptionAlgorithm, originatorCerts, unprotectedAttributes))
106
public static
SafeCryptMsgHandle
CreateCryptMsgHandleToEncode(CmsRecipientCollection recipients, Oid innerContentType, AlgorithmIdentifier contentEncryptionAlgorithm, X509Certificate2Collection originatorCerts, CryptographicAttributeObjectCollection unprotectedAttributes)
120
SafeCryptMsgHandle
hCryptMsg = Interop.Crypt32.CryptMsgOpenToEncode(MsgEncodingType.All, 0, CryptMsgType.CMSG_ENVELOPED, pEnvelopedEncodeInfo, innerContentType.Value!, IntPtr.Zero);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptMsgControl.cs (2)
15
SafeCryptMsgHandle
hCryptMsg,
24
SafeCryptMsgHandle
hCryptMsg,
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptMsgGetParam.cs (4)
16
SafeCryptMsgHandle
hCryptMsg,
26
SafeCryptMsgHandle
hCryptMsg,
36
SafeCryptMsgHandle
hCryptMsg,
46
SafeCryptMsgHandle
hCryptMsg,
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptMsgOpenToDecode.cs (1)
14
internal static partial
SafeCryptMsgHandle
CryptMsgOpenToDecode(
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptMsgOpenToEncode.cs (1)
14
internal static unsafe partial
SafeCryptMsgHandle
CryptMsgOpenToEncode(
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptMsgUpdate.cs (3)
15
internal static partial bool CryptMsgUpdate(
SafeCryptMsgHandle
hCryptMsg, byte[] pbData, int cbData, [MarshalAs(UnmanagedType.Bool)] bool fFinal);
20
internal static partial bool CryptMsgUpdate(
SafeCryptMsgHandle
hCryptMsg, IntPtr pbData, int cbData, [MarshalAs(UnmanagedType.Bool)] bool fFinal);
25
internal static partial bool CryptMsgUpdate(
SafeCryptMsgHandle
hCryptMsg, ref byte pbData, int cbData, [MarshalAs(UnmanagedType.Bool)] bool fFinal);