25 references to GetEncodedLength
System.Net.Security (1)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
253byte[] rented = CryptoPool.Rent(writer.GetEncodedLength());
System.Security.Cryptography (16)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
253byte[] rented = CryptoPool.Rent(writer.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (1)
1704Debug.Assert(writer.GetEncodedLength() <= capacity);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (2)
167int algorithmIdentifierLength = algorithmIdentifierWriter.GetEncodedLength(); 168int privateKeyLength = privateKeyWriter.GetEncodedLength();
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (1)
204checked(pkcs8Writer.GetEncodedLength() + (cipher.BlockSize / 8)));
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (1)
1662Debug.Assert(writer.GetEncodedLength() <= capacity);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
324int sourceLength = source.GetEncodedLength();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
180rentedAuthSafe = CryptoPool.Rent(contentsWriter.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
371byte[] encryptedRent = CryptoPool.Rent(contentsWriter.GetEncodedLength() + cipherBlockBytes);
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
191byte[] rented = CryptoPool.Rent(pkcs1PublicKey.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (2)
678Debug.Assert(writer.GetEncodedLength() <= capacity); 1889Debug.Assert(writer.GetEncodedLength() <= capacity);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
1006byte[] ret = CryptoPool.Rent(writer.GetEncodedLength());
System\Security\Cryptography\Helpers.cs (1)
492int encodedOidLength = writer.GetEncodedLength();
System\Security\Cryptography\X509Certificates\MLDsaX509SignatureGenerator.cs (1)
34Debug.Assert(writer.GetEncodedLength() <= InitialCapacity);
System\Security\Cryptography\X509Certificates\SlhDsaX509SignatureGenerator.cs (1)
35Debug.Assert(writer.GetEncodedLength() <= InitialCapacity);
System.Security.Cryptography.Pkcs (8)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
253byte[] rented = CryptoPool.Rent(writer.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (2)
167int algorithmIdentifierLength = algorithmIdentifierWriter.GetEncodedLength(); 168int privateKeyLength = privateKeyWriter.GetEncodedLength();
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (1)
204checked(pkcs8Writer.GetEncodedLength() + (cipher.BlockSize / 8)));
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
324int sourceLength = source.GetEncodedLength();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
180rentedAuthSafe = CryptoPool.Rent(contentsWriter.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
371byte[] encryptedRent = CryptoPool.Rent(contentsWriter.GetEncodedLength() + cipherBlockBytes);
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
670int encodedLength = writer.GetEncodedLength();