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