1 write to Suite
System.Security.Cryptography (1)
System\Security\Cryptography\HpkeManagedKemAdapter.cs (1)
27
Suite
= suite;
16 references to Suite
System.Security.Cryptography (16)
System\Security\Cryptography\HpkeECDiffieHellmanKemAdapter.cs (8)
48
private ReadOnlySpan<byte> Order =>
Suite
.KemAlgorithm switch
71
if (decapsulationKey.Length !=
Suite
.DecapsulationKeySizeInBytes ||
97
if (encapsulationKey.Length !=
Suite
.EncapsulationKeySizeInBytes)
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\HpkeManagedKemAdapter.cs (5)
23
protected HpkeKdfMetadata KeyDerivationKdf =>
Suite
.KemMetadata.KemKdf;
55
Span<byte> ikm = ikmStack.Slice(0,
Suite
.KemMetadata.Nsk);
71
int contextLength = checked(encapsulatedSecret.Length +
Suite
.EncapsulationKeySizeInBytes);
113
ReadOnlySpan<byte> suiteId =
Suite
.KemMetadata.SuiteId;
142
ReadOnlySpan<byte> suiteId =
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);