8 references to GetEncodedLength
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();