public static bool CryptGetHashParam( SafeHashHandle safeHashHandle, CryptHashProperty dwParam, Span <byte> pbData, [In, Out] ref int pdwDataLen, int dwFlags) { if (pbData.IsEmpty) { return(CryptGetHashParam(safeHashHandle, dwParam, IntPtr.Zero, ref pdwDataLen, 0)); } if (pdwDataLen > pbData.Length) { throw new IndexOutOfRangeException(); } unsafe { fixed(byte *bytePtr = &MemoryMarshal.GetReference(pbData)) { return(CryptGetHashParam(safeHashHandle, dwParam, (IntPtr)bytePtr, ref pdwDataLen, 0)); } } }
public static extern bool CryptSetHashParam(SafeHashHandle hHash, CryptHashProperty dwParam, byte[] buffer, int dwFlags);
public static extern bool CryptGetHashParam(SafeHashHandle hHash, CryptHashProperty dwParam, out int pbData, [In, Out] ref int pdwDataLen, int dwFlags);
public static extern bool CryptGetHashParam( SafeHashHandle hHash, CryptHashProperty dwParam, IntPtr pbData, [In, Out] ref int pdwDataLen, int dwFlags);
public static partial bool CryptGetHashParam( SafeHashHandle hHash, CryptHashProperty dwParam, out int pbData, ref int pdwDataLen, int dwFlags);