23 references to SafeBCryptKeyHandle
System.Core (23)
System\Security\Cryptography\BCryptNative.cs (13)
249
internal static extern ErrorCode BCryptGetProperty(
SafeBCryptKeyHandle
hObject,
306
internal static extern ErrorCode BCryptExportKey([In]
SafeBCryptKeyHandle
hKey,
319
[Out] out
SafeBCryptKeyHandle
phKey);
326
out
SafeBCryptKeyHandle
hKey,
335
SafeBCryptKeyHandle
hKey,
348
SafeBCryptKeyHandle
hKey,
599
internal static
SafeBCryptKeyHandle
ImportAsymmetricPublicKey(X509Native.CERT_PUBLIC_KEY_INFO certPublicKeyInfo, int dwFlag) {
600
SafeBCryptKeyHandle
keyHandle = null;
614
internal static byte[] ExportBCryptKey(
SafeBCryptKeyHandle
hKey, string blobType) {
634
internal static
SafeBCryptKeyHandle
BCryptImportKey(SafeBCryptAlgorithmHandle hAlg, byte[] key)
650
SafeBCryptKeyHandle
hKey;
674
SafeBCryptKeyHandle
hKey,
724
SafeBCryptKeyHandle
hKey,
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (10)
39
private static
SafeBCryptKeyHandle
ImportPublicKeyInfo(SafeCertContextHandle certContext)
52
SafeBCryptKeyHandle
publicKeyInfo = BCryptNative.ImportAsymmetricPublicKey(certPublicKeyInfo, 0);
73
using (
SafeBCryptKeyHandle
bcryptKeyHandle = ImportPublicKeyInfo(safeCertContext))
127
using (
SafeBCryptKeyHandle
bcryptKeyHandle = BCryptNative.ImportAsymmetricPublicKey(certPublicKeyInfo, 0))
245
private static bool HasExplicitParameters(
SafeBCryptKeyHandle
bcryptHandle)
251
private static string GetCurveName(
SafeBCryptKeyHandle
bcryptHandle)
258
private static string GetPropertyAsString(
SafeBCryptKeyHandle
cryptHandle, string propertyName)
310
private static byte[] GetProperty(
SafeBCryptKeyHandle
cryptHandle, string propertyName)
331
private static bool HasProperty(
SafeBCryptKeyHandle
cryptHandle, string propertyName)
347
private static CngKey LegacyBCryptHandleToNCryptHandle(
SafeBCryptKeyHandle
bcryptKeyHandle)