1 write to EncapsulationKeySizeInBytes
System.Security.Cryptography (1)
src\libraries\Common\src\System\Security\Cryptography\MLKemAlgorithm.cs (1)
24EncapsulationKeySizeInBytes = encapsulationKeySizeInBytes;
9 references to EncapsulationKeySizeInBytes
System.Security.Cryptography (9)
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (6)
471if (source.Length != algorithm.EncapsulationKeySizeInBytes) 577if (destination.Length != Algorithm.EncapsulationKeySizeInBytes) 580SR.Format(SR.Argument_DestinationImprecise, Algorithm.EncapsulationKeySizeInBytes), 601byte[] encapsulationKey = new byte[Algorithm.EncapsulationKeySizeInBytes]; 1214if (key.Length != algorithm.EncapsulationKeySizeInBytes) 1667int encapsulationKeySize = Algorithm.EncapsulationKeySizeInBytes;
System\Security\Cryptography\MLKemImplementation.OpenSsl.cs (1)
59Debug.Assert(source.Length == algorithm.EncapsulationKeySizeInBytes);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (2)
868using (CryptoPoolLease pk1 = CryptoPoolLease.Rent(publicKey.Algorithm.EncapsulationKeySizeInBytes, skipClear: true)) 869using (CryptoPoolLease pk2 = CryptoPoolLease.Rent(publicKey.Algorithm.EncapsulationKeySizeInBytes, skipClear: true))