1 write to Suite
System.Security.Cryptography (1)
System\Security\Cryptography\HpkeManagedKemAdapter.cs (1)
27
Suite
= suite;
20 references to Suite
System.Security.Cryptography (20)
System\Security\Cryptography\HpkeECDiffieHellmanKemAdapter.cs (9)
71
if (decapsulationKey.Length !=
Suite
.DecapsulationKeySizeInBytes ||
72
!IsValidScalar(decapsulationKey, GetOrder(
Suite
.KemAlgorithm)))
97
if (encapsulationKey.Length !=
Suite
.EncapsulationKeySizeInBytes)
126
ReadOnlySpan<byte> order = GetOrder(
Suite
.KemAlgorithm);
127
Debug.Assert(order.Length ==
Suite
.KemMetadata.Nsk);
128
byte[] privateKey = new byte[
Suite
.KemMetadata.Nsk];
170
using (HpkeECDiffieHellmanKemAdapter ephemeral = new HpkeECDiffieHellmanKemAdapter(
Suite
))
206
Debug.Assert(destination.Length ==
Suite
.DecapsulationKeySizeInBytes);
225
Debug.Assert(destination.Length ==
Suite
.EncapsulationKeySizeInBytes);
System\Security\Cryptography\HpkeHybridMLKemAdapter.cs (2)
399
private int TraditionalSharedSecretSize =>
Suite
.KemAlgorithm switch
406
private ReadOnlySpan<byte> Label =>
Suite
.KemAlgorithm switch
System\Security\Cryptography\HpkeManagedKemAdapter.cs (6)
23
protected HpkeKdfMetadata KeyDerivationKdf =>
Suite
.KemMetadata.KemKdf;
62
Span<byte> ikm = ikmStack.Slice(0,
Suite
.KemMetadata.Nsk);
78
int contextLength = checked(encapsulatedSecret.Length +
Suite
.EncapsulationKeySizeInBytes);
120
ReadOnlySpan<byte> suiteId =
Suite
.KemMetadata.SuiteId;
149
ReadOnlySpan<byte> suiteId =
Suite
.KemMetadata.SuiteId;
183
shake.AppendData(
Suite
.KemMetadata.SuiteId);
System\Security\Cryptography\HpkeX25519DiffieHellmanKemAdapter.cs (3)
53
using (HpkeX25519DiffieHellmanKemAdapter ephemeral = new HpkeX25519DiffieHellmanKemAdapter(
Suite
))
93
Debug.Assert(destination.Length ==
Suite
.DecapsulationKeySizeInBytes);
101
Debug.Assert(destination.Length ==
Suite
.EncapsulationKeySizeInBytes);