51 references to CngKey
System.Core (1)
System.Core.cs (1)
203[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CngKey))]
System.Security.Cryptography (49)
src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.cs (10)
27private CngKey _key; 30/// Initializes a new instance of the <see cref="MLDsaCng"/> class by using the specified <see cref="CngKey"/>. 45public MLDsaCng(CngKey key) 46: base(AlgorithmFromHandleWithPlatformCheck(key, out CngKey duplicateKey)) 51private static MLDsaAlgorithm AlgorithmFromHandleWithPlatformCheck(CngKey key, out CngKey duplicateKey) 63private static partial MLDsaAlgorithm AlgorithmFromHandle(CngKey key, out CngKey duplicateKey); 75/// This <see cref="CngKey"/> object is not the same as the one passed to the <see cref="MLDsaCng"/> constructor, 78public partial CngKey Key { get; }
src\libraries\Common\src\System\Security\Cryptography\MLKemCng.cs (12)
28private CngKey _key; 31/// Initializes a new instance of the <see cref="MLKemCng"/> class by using the specified <see cref="CngKey"/>. 47public MLKemCng(CngKey key) : base(AlgorithmFromHandleWithPlatformCheck(key, out CngKey duplicateKey)) 52private static MLKemAlgorithm AlgorithmFromHandleWithPlatformCheck(CngKey key, out CngKey duplicateKey) 64private static partial MLKemAlgorithm AlgorithmFromHandle(CngKey key, out CngKey duplicateKey); 67/// Gets a new <see cref="CngKey" /> representing the key used by the current instance. 73/// This <see cref="CngKey"/> object is not the same as the one passed to <see cref="MLKemCng(CngKey)"/>, 76public partial CngKey GetKey();
System\Security\Cryptography\Cng.NotSupported.cs (27)
97public AesCng(CngKey key) 132public static CngKey Create(CngAlgorithm algorithm) 138public static CngKey Create(CngAlgorithm algorithm, string? keyName) 144public static CngKey Create(CngAlgorithm algorithm, string? keyName, CngKeyCreationParameters? creationParameters) 168public static CngKey Import(byte[] keyBlob, CngKeyBlobFormat format) 174public static CngKey Import(byte[] keyBlob, CngKeyBlobFormat format, CngProvider provider) 180public static CngKey Open(SafeNCryptKeyHandle keyHandle, CngKeyHandleOpenOptions keyHandleOpenOptions) 186public static CngKey Open(string keyName) 192public static CngKey Open(string keyName, CngProvider provider) 198public static CngKey Open(string keyName, CngProvider provider, CngKeyOpenOptions openOptions) 218public DSACng(CngKey key) 223public CngKey Key => null!; 244public ECDiffieHellmanCng(CngKey key) 257public CngKey Key => null!; 264public SafeNCryptSecretHandle DeriveSecretAgreementHandle(CngKey otherPartyPublicKey) => null!; 266public byte[] DeriveKeyMaterial(CngKey otherPartyPublicKey) => null!; 278public CngKey Import() => null!; 313public ECDsaCng(CngKey key) 325public CngKey Key => null!; 354public RSACng(CngKey key) 359public CngKey Key => null!; 396private static partial MLDsaAlgorithm AlgorithmFromHandle(CngKey key, out CngKey duplicateKey) => 399public partial CngKey Key => 423private static partial MLKemAlgorithm AlgorithmFromHandle(CngKey key, out CngKey duplicateKey) 428public partial CngKey GetKey()
System.Security.Cryptography.Cng (1)
System.Security.Cryptography.Cng.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CngKey))]