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)
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))
51
private static MLDsaAlgorithm AlgorithmFromHandleWithPlatformCheck(
CngKey
key, out
CngKey
duplicateKey)
63
private 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,
78
public partial
CngKey
Key { get; }
src\libraries\Common\src\System\Security\Cryptography\MLKemCng.cs (12)
28
private
CngKey
_key;
31
/// Initializes a new instance of the <see cref="MLKemCng"/> class by using the specified <see cref="
CngKey
"/>.
47
public MLKemCng(
CngKey
key) : base(AlgorithmFromHandleWithPlatformCheck(key, out
CngKey
duplicateKey))
52
private static MLKemAlgorithm AlgorithmFromHandleWithPlatformCheck(
CngKey
key, out
CngKey
duplicateKey)
64
private 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
)"/>,
76
public partial
CngKey
GetKey();
System\Security\Cryptography\Cng.NotSupported.cs (27)
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
Key =>
423
private static partial MLKemAlgorithm AlgorithmFromHandle(
CngKey
key, out
CngKey
duplicateKey)
428
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
))]