18 references to SafeNCryptSecretHandle
System.Core (18)
System\Security\Cryptography\ECDiffieHellmanCng.cs (6)
372using (SafeNCryptSecretHandle secretAgreement = NCryptNative.DeriveSecretAgreement(localKey, otherKey)) { 425using (SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey)) 451using (SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey)) 479using (SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey)) 492public SafeNCryptSecretHandle DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey) { 513public SafeNCryptSecretHandle DeriveSecretAgreementHandle(CngKey otherPartyPublicKey) {
System\Security\Cryptography\NCryptNative.cs (12)
240internal static extern ErrorCode NCryptDeriveKey(SafeNCryptSecretHandle hSharedSecret, 338[Out] out SafeNCryptSecretHandle phSecret, 1019private static byte[] DeriveKeyMaterial(SafeNCryptSecretHandle secretAgreement, 1103private static byte[] DeriveKeyMaterial(SafeNCryptSecretHandle secretAgreement, 1155internal static byte[] DeriveKeyMaterialHash(SafeNCryptSecretHandle secretAgreement, 1177internal static byte[] DeriveKeyMaterialHmac(SafeNCryptSecretHandle secretAgreement, 1200internal static byte[] DeriveKeyMaterialTls(SafeNCryptSecretHandle secretAgreement, 1236internal static SafeNCryptSecretHandle DeriveSecretAgreement(SafeNCryptKeyHandle privateKey, 1240Contract.Ensures(Contract.Result<SafeNCryptSecretHandle>() != null && 1241!Contract.Result<SafeNCryptSecretHandle>().IsClosed && 1242!Contract.Result<SafeNCryptSecretHandle>().IsInvalid); 1244SafeNCryptSecretHandle secretAgreement;