throw Marshal.GetLastWin32Error().ToCryptographicException();
byte* decoded = stackalloc byte[cb];
+ new Span<byte>(decoded, cb).Clear();
if (!Interop.crypt32.CryptDecodeObjectPointer(CertEncodingType.All, lpszStructType, encoded, encoded.Length, CryptDecodeObjectFlags.None, (byte*)decoded, ref cb))
throw Marshal.GetLastWin32Error().ToCryptographicException();
throw Marshal.GetLastWin32Error().ToCryptographicException();
byte* decoded = stackalloc byte[cb];
+ new Span<byte>(decoded, cb).Clear();
if (!Interop.crypt32.CryptDecodeObjectPointer(CertEncodingType.All, lpszStructType, encoded, encoded.Length, CryptDecodeObjectFlags.None, (byte*)decoded, ref cb))
throw Marshal.GetLastWin32Error().ToCryptographicException();
return false;
byte* decoded = stackalloc byte[cb];
+ new Span<byte>(decoded, cb).Clear();
if (!Interop.crypt32.CryptDecodeObjectPointer(CertEncodingType.All, lpszStructType, encoded, encoded.Length, CryptDecodeObjectFlags.None, (byte*)decoded, ref cb))
return false;