1 write to Suite
System.Security.Cryptography (1)
System\Security\Cryptography\HpkeManagedKemAdapter.cs (1)
27Suite = suite;
20 references to Suite
System.Security.Cryptography (20)
System\Security\Cryptography\HpkeECDiffieHellmanKemAdapter.cs (9)
71if (decapsulationKey.Length != Suite.DecapsulationKeySizeInBytes || 72!IsValidScalar(decapsulationKey, GetOrder(Suite.KemAlgorithm))) 97if (encapsulationKey.Length != Suite.EncapsulationKeySizeInBytes) 126ReadOnlySpan<byte> order = GetOrder(Suite.KemAlgorithm); 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\HpkeHybridMLKemAdapter.cs (2)
399private int TraditionalSharedSecretSize => Suite.KemAlgorithm switch 406private ReadOnlySpan<byte> Label => Suite.KemAlgorithm switch
System\Security\Cryptography\HpkeManagedKemAdapter.cs (6)
23protected HpkeKdfMetadata KeyDerivationKdf => Suite.KemMetadata.KemKdf; 62Span<byte> ikm = ikmStack.Slice(0, Suite.KemMetadata.Nsk); 78int contextLength = checked(encapsulatedSecret.Length + Suite.EncapsulationKeySizeInBytes); 120ReadOnlySpan<byte> suiteId = Suite.KemMetadata.SuiteId; 149ReadOnlySpan<byte> suiteId = Suite.KemMetadata.SuiteId; 183shake.AppendData(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);