51 references to SafeBioHandle
System.Security.Cryptography (51)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.BIO.cs (12)
13internal static partial SafeBioHandle CreateMemoryBio(); 16internal static partial SafeBioHandle BioNewFile(string filename, string mode); 23private static unsafe partial int BioGets(SafeBioHandle b, byte* buf, int size); 25internal static unsafe int BioGets(SafeBioHandle b, Span<byte> buf) 34internal static partial int BioRead(SafeBioHandle b, byte[] data, int len); 37private static partial int BioRead(SafeBioHandle b, Span<byte> data, int len); 38internal static int BioRead(SafeBioHandle b, Span<byte> data) => BioRead(b, data, data.Length); 41internal static partial int BioWrite(SafeBioHandle b, byte[] data, int len); 43internal static int BioWrite(SafeBioHandle b, ReadOnlySpan<byte> data) => 47private static partial int BioWrite(SafeBioHandle b, ref byte data, int len); 50internal static partial int GetMemoryBioSize(SafeBioHandle bio); 53internal static partial int BioCtrlPending(SafeBioHandle bio);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (5)
17internal static partial int CryptoNative_BioTell(SafeBioHandle bio); 19internal static int BioTell(SafeBioHandle bio) 31internal static partial int BioSeek(SafeBioHandle bio, int pos); 40internal static partial SafeX509Handle ReadX509AsDerFromBio(SafeBioHandle bio); 52internal static partial SafeBioHandle GetX509NameInfo(SafeX509Handle x509, int nameType, [MarshalAs(UnmanagedType.Bool)] bool forIssuer);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Pkcs7.cs (2)
13internal static partial SafePkcs7Handle PemReadBioPkcs7(SafeBioHandle bp); 22internal static partial SafePkcs7Handle D2IPkcs7Bio(SafeBioHandle bp);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (4)
78internal static partial SafeX509Handle PemReadX509FromBio(SafeBioHandle bio); 81internal static partial SafeX509Handle PemReadX509FromBioAux(SafeBioHandle bio); 265internal static partial int PemWriteBioX509Crl(SafeBioHandle bio, SafeX509CrlHandle crl); 268internal static partial SafeX509CrlHandle PemReadBioX509Crl(SafeBioHandle bio);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509Ext.cs (1)
23internal static partial bool X509V3ExtPrint(SafeBioHandle buf, SafeX509ExtensionHandle ext);
System\Security\Cryptography\OpenSslAsnFormatter.cs (1)
39using (SafeBioHandle bio = Interop.Crypto.CreateMemoryBio())
System\Security\Cryptography\X509Certificates\OpenSslCachedSystemStoreProvider.cs (1)
223using (SafeBioHandle fileBio = Interop.Crypto.BioNewFile(file, "rb"))
System\Security\Cryptography\X509Certificates\OpenSslCertificateAssetDownloader.cs (1)
77using (SafeBioHandle bio = Interop.Crypto.CreateMemoryBio())
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (2)
99using (SafeBioHandle bio = Interop.Crypto.BioNewFile(crlFile, "rb")) 236using (SafeBioHandle bio = Interop.Crypto.BioNewFile(crlFile, "wb"))
System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs (10)
28using (SafeBioHandle bio = Interop.Crypto.CreateMemoryBio()) 50internal static bool IsPkcs7Der(SafeBioHandle fileBio) 64internal static bool IsPkcs7Pem(SafeBioHandle fileBio) 83internal static bool TryReadPkcs7Der(SafeBioHandle bio, out ICertificatePal? certPal) 93internal static bool TryReadPkcs7Der(SafeBioHandle bio, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 119SafeBioHandle bio, 143internal static bool TryReadPkcs7Pem(SafeBioHandle bio, out ICertificatePal? certPal) 153internal static bool TryReadPkcs7Pem(SafeBioHandle bio, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 164using (SafeBioHandle bio = Interop.Crypto.CreateMemoryBio()) 178SafeBioHandle bio,
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (8)
78using (SafeBioHandle fileBio = Interop.Crypto.BioNewFile(fileName, "rb")) 106private static ICertificatePal? FromBio(SafeBioHandle bio) 145internal static void RewindBio(SafeBioHandle bio, int bioPosition) 173internal static bool TryReadX509Pem(SafeBioHandle bio, [NotNullWhen(true)] out ICertificatePal? certPal) 189internal static bool TryReadX509PemNoAux(SafeBioHandle bio, [NotNullWhen(true)] out ICertificatePal? certPal) 207using (SafeBioHandle bio = Interop.Crypto.CreateMemoryBio()) 220internal static bool TryReadX509Der(SafeBioHandle bio, [NotNullWhen(true)] out ICertificatePal? fromBio) 705using (SafeBioHandle bioHandle = Interop.Crypto.GetX509NameInfo(_cert, (int)nameType, forIssuer))
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (1)
96using (SafeBioHandle fileBio = Interop.Crypto.BioNewFile(fileName, "rb"))
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (2)
64using (SafeBioHandle bio = Interop.Crypto.BioNewFile(fileName, "rb")) 74SafeBioHandle bio,
System\Security\Cryptography\X509Certificates\X509CertificateLoader.OpenSsl.cs (1)
28using (SafeBioHandle fileBio = Interop.Crypto.BioNewFile(path, "rb"))