1 write to Suite
System.Security.Cryptography (1)
System\Security\Cryptography\HpkeManagedKemAdapter.cs (1)
27Suite = suite;
16 references to Suite
System.Security.Cryptography (16)
System\Security\Cryptography\HpkeECDiffieHellmanKemAdapter.cs (8)
48private ReadOnlySpan<byte> Order => Suite.KemAlgorithm switch 71if (decapsulationKey.Length != Suite.DecapsulationKeySizeInBytes || 97if (encapsulationKey.Length != Suite.EncapsulationKeySizeInBytes) 127Debug.Assert(order.Length == Suite.KemMetadata.Nsk); 128byte[] privateKey = new byte[Suite.KemMetadata.Nsk]; 170using (HpkeECDiffieHellmanKemAdapter ephemeral = new HpkeECDiffieHellmanKemAdapter(Suite)) 206Debug.Assert(destination.Length == Suite.DecapsulationKeySizeInBytes); 225Debug.Assert(destination.Length == Suite.EncapsulationKeySizeInBytes);
System\Security\Cryptography\HpkeManagedKemAdapter.cs (5)
23protected HpkeKdfMetadata KeyDerivationKdf => Suite.KemMetadata.KemKdf; 55Span<byte> ikm = ikmStack.Slice(0, Suite.KemMetadata.Nsk); 71int contextLength = checked(encapsulatedSecret.Length + Suite.EncapsulationKeySizeInBytes); 113ReadOnlySpan<byte> suiteId = Suite.KemMetadata.SuiteId; 142ReadOnlySpan<byte> suiteId = Suite.KemMetadata.SuiteId;
System\Security\Cryptography\HpkeX25519DiffieHellmanKemAdapter.cs (3)
53using (HpkeX25519DiffieHellmanKemAdapter ephemeral = new HpkeX25519DiffieHellmanKemAdapter(Suite)) 93Debug.Assert(destination.Length == Suite.DecapsulationKeySizeInBytes); 101Debug.Assert(destination.Length == Suite.EncapsulationKeySizeInBytes);