23 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 (15)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
253byte[] rented = CryptoPool.Rent(writer.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (1)
277byte[] tmp = CryptoPool.Rent(inner.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)
202checked(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\RSAKeyFormatHelper.cs (1)
191byte[] rented = CryptoPool.Rent(pkcs1PublicKey.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
1006byte[] ret = CryptoPool.Rent(writer.GetEncodedLength());
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (7)
291Debug.Assert(tmpWriter.GetEncodedLength() == 0); 301int length = tmpWriter.GetEncodedLength(); 328Debug.Assert(tmpWriter.GetEncodedLength() == 0); 375int requestedSize = checked(tmpWriter.GetEncodedLength() + cipherBlockBytes); 406Debug.Assert(tmpWriter.GetEncodedLength() == 0); 465int authSafeLength = tmpWriter.GetEncodedLength(); 514Debug.Assert(tmpWriter.GetEncodedLength() == 0);
System.Security.Cryptography.Pkcs (7)
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)
202checked(pkcs8Writer.GetEncodedLength() + (cipher.BlockSize / 8)));
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
324int sourceLength = source.GetEncodedLength();
System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
189rentedAuthSafe = CryptoPool.Rent(contentsWriter.GetEncodedLength());
System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
387byte[] encryptedRent = CryptoPool.Rent(contentsWriter.GetEncodedLength() + cipherBlockBytes);