8 references to GetEncodedLength
System.Security.Cryptography.Pkcs (8)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
253
byte[] rented = CryptoPool.Rent(writer.
GetEncodedLength
());
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (2)
167
int algorithmIdentifierLength = algorithmIdentifierWriter.
GetEncodedLength
();
168
int privateKeyLength = privateKeyWriter.
GetEncodedLength
();
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (1)
204
checked(pkcs8Writer.
GetEncodedLength
() + (cipher.BlockSize / 8)));
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
324
int sourceLength = source.
GetEncodedLength
();
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
180
rentedAuthSafe = CryptoPool.Rent(contentsWriter.
GetEncodedLength
());
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
371
byte[] encryptedRent = CryptoPool.Rent(contentsWriter.
GetEncodedLength
() + cipherBlockBytes);
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
670
int encodedLength = writer.
GetEncodedLength
();