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