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