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
"/>.
39
public CompositeMLDsaCng(
CngKey
key)
45
private 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
)"/>,
58
public partial
CngKey
GetKey();
src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.cs (12)
27
private
CngKey
_key;
30
/// Initializes a new instance of the <see cref="MLDsaCng"/> class by using the specified <see cref="
CngKey
"/>.
45
public MLDsaCng(
CngKey
key)
46
: base(AlgorithmFromHandleWithPlatformCheck(key, out
CngKey
duplicateKey))
59
private static MLDsaAlgorithm AlgorithmFromHandleWithPlatformCheck(
CngKey
key, out
CngKey
duplicateKey)
69
private 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
)"/>,
81
public partial
CngKey
GetKey();
src\libraries\Common\src\System\Security\Cryptography\MLKemCng.cs (12)
26
private
CngKey
_key;
29
/// Initializes a new instance of the <see cref="MLKemCng"/> class by using the specified <see cref="
CngKey
"/>.
45
public MLKemCng(
CngKey
key) : base(AlgorithmFromHandleWithPlatformCheck(key, out
CngKey
duplicateKey))
50
private static MLKemAlgorithm AlgorithmFromHandleWithPlatformCheck(
CngKey
key, out
CngKey
duplicateKey)
60
private 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
)"/>,
72
public 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
"/>.
43
public 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
)"/>,
59
public
CngKey
GetKey()
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
736
CngKey
? cngKey = null;
744
cngKey =
CngKey
.Create(
System\Security\Cryptography\Cng.NotSupported.cs (28)
97
public AesCng(
CngKey
key)
132
public static
CngKey
Create(CngAlgorithm algorithm)
138
public static
CngKey
Create(CngAlgorithm algorithm, string? keyName)
144
public static
CngKey
Create(CngAlgorithm algorithm, string? keyName, CngKeyCreationParameters? creationParameters)
168
public static
CngKey
Import(byte[] keyBlob, CngKeyBlobFormat format)
174
public static
CngKey
Import(byte[] keyBlob, CngKeyBlobFormat format, CngProvider provider)
180
public static
CngKey
Open(SafeNCryptKeyHandle keyHandle, CngKeyHandleOpenOptions keyHandleOpenOptions)
186
public static
CngKey
Open(string keyName)
192
public static
CngKey
Open(string keyName, CngProvider provider)
198
public static
CngKey
Open(string keyName, CngProvider provider, CngKeyOpenOptions openOptions)
218
public DSACng(
CngKey
key)
223
public
CngKey
Key => null!;
244
public ECDiffieHellmanCng(
CngKey
key)
257
public
CngKey
Key => null!;
264
public SafeNCryptSecretHandle DeriveSecretAgreementHandle(
CngKey
otherPartyPublicKey) => null!;
266
public byte[] DeriveKeyMaterial(
CngKey
otherPartyPublicKey) => null!;
278
public
CngKey
Import() => null!;
313
public ECDsaCng(
CngKey
key)
325
public
CngKey
Key => null!;
354
public RSACng(
CngKey
key)
359
public
CngKey
Key => null!;
396
private static partial MLDsaAlgorithm AlgorithmFromHandle(
CngKey
key, out
CngKey
duplicateKey) =>
399
public partial
CngKey
GetKey() =>
429
private static partial MLKemAlgorithm AlgorithmFromHandle(
CngKey
key, out
CngKey
duplicateKey)
434
public partial
CngKey
GetKey()
472
public 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
))]