69 references to CngKey
System.Core (1)
System.Core.cs (1)
203[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.CngKey))]
System.Security.Cryptography (67)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaCng.cs (7)
24/// Initializes a new instance of the <see cref="CompositeMLDsaCng"/> class by using the specified <see cref="CngKey"/>. 39public CompositeMLDsaCng(CngKey key) 45private static CompositeMLDsaAlgorithm AlgorithmFromHandle(CngKey key) => 49/// Gets a new <see cref="CngKey" /> representing the key used by the current instance. 55/// This <see cref="CngKey"/> object is not the same as the one passed to <see cref="CompositeMLDsaCng(CngKey)"/>, 58public partial CngKey GetKey();
src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.cs (12)
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)) 59private static MLDsaAlgorithm AlgorithmFromHandleWithPlatformCheck(CngKey key, out CngKey duplicateKey) 69private static partial MLDsaAlgorithm AlgorithmFromHandle(CngKey key, out CngKey duplicateKey); 72/// Gets a new <see cref="CngKey" /> representing the key used by the current instance. 78/// This <see cref="CngKey"/> object is not the same as the one passed to <see cref="MLDsaCng(CngKey)"/>, 81public partial CngKey GetKey();
src\libraries\Common\src\System\Security\Cryptography\MLKemCng.cs (12)
26private CngKey _key; 29/// Initializes a new instance of the <see cref="MLKemCng"/> class by using the specified <see cref="CngKey"/>. 45public MLKemCng(CngKey key) : base(AlgorithmFromHandleWithPlatformCheck(key, out CngKey duplicateKey)) 50private static MLKemAlgorithm AlgorithmFromHandleWithPlatformCheck(CngKey key, out CngKey duplicateKey) 60private static partial MLKemAlgorithm AlgorithmFromHandle(CngKey key, out CngKey duplicateKey); 63/// Gets a new <see cref="CngKey" /> representing the key used by the current instance. 69/// This <see cref="CngKey"/> object is not the same as the one passed to <see cref="MLKemCng(CngKey)"/>, 72public partial CngKey GetKey();
src\libraries\Common\src\System\Security\Cryptography\SlhDsaCng.cs (6)
28/// Initializes a new instance of the <see cref="SlhDsaCng"/> class by using the specified <see cref="CngKey"/>. 43public SlhDsaCng(CngKey key) : base(SlhDsaAlgorithm.SlhDsaShake256f) // We need to pass something to the base so we can throw PNSE. 50/// Gets a new <see cref="CngKey" /> representing the key used by the current instance. 56/// This <see cref="CngKey"/> object is not the same as the one passed to <see cref="SlhDsaCng(CngKey)"/>, 59public CngKey GetKey()
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
736CngKey? cngKey = null; 744cngKey = CngKey.Create(
System\Security\Cryptography\Cng.NotSupported.cs (28)
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 GetKey() => 429private static partial MLKemAlgorithm AlgorithmFromHandle(CngKey key, out CngKey duplicateKey) 434public partial CngKey GetKey() 472public 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))]