11 references to X25519WindowsHelpers
System.Security.Cryptography (11)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (5)
68
X25519WindowsHelpers
.ReducePublicKey(otherPartyPublicKey, reducedPublicKey);
74
using (CryptoPoolLease lease =
X25519WindowsHelpers
.CreateCngBlob(reducedPublicKey, privateKey: false, out _))
88
X25519WindowsHelpers
.BCRYPT_ECC_CURVE_25519,
214
X25519WindowsHelpers
.ExportKey(lease.Span.Slice(0, numBytesNeeded), privateKey, destination);
221
return key.GetCurveName(out _) ==
X25519WindowsHelpers
.BCRYPT_ECC_CURVE_25519;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (6)
112
X25519WindowsHelpers
.RefixPrivateScalar(destination, _privatePreservation);
189
requiredReduction =
X25519WindowsHelpers
.ReducePublicKey(source, reducedPublicKey);
204
X25519WindowsHelpers
.ExportKey(key, privateKey, destination);
226
using (CryptoPoolLease lease =
X25519WindowsHelpers
.CreateCngBlob(key, privateKey, out preservation))
253
fixed (char* pbInput =
X25519WindowsHelpers
.BCRYPT_ECC_CURVE_25519)
259
((uint)
X25519WindowsHelpers
.BCRYPT_ECC_CURVE_25519.Length + 1) * 2,