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