22 references to Rent
System.Security.Cryptography.Pkcs (22)
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
199
cek = CryptoPool.
Rent
(privateKey.KeySize / 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\CryptoPool.cs (1)
83
byte[] rented = CryptoPool.
Rent
(length);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (3)
118
byte[] decrypted = CryptoPool.
Rent
(epki.EncryptedData.Length);
203
byte[] encryptedRent = CryptoPool.
Rent
(
361
byte[] decrypted = CryptoPool.
Rent
(epki.EncryptedData.Length);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (5)
188
rented = CryptoPool.
Rent
(byteCount);
326
byte[] sourceRent = CryptoPool.
Rent
(sourceLength);
473
rented = CryptoPool.
Rent
(byteCount);
925
byte[] rentedEncryptedData = CryptoPool.
Rent
(encryptedData.Length);
926
byte[] rentedDestination = CryptoPool.
Rent
(destination.Length);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
180
rentedAuthSafe = CryptoPool.
Rent
(contentsWriter.GetEncodedLength());
192
rentedMac = CryptoPool.
Rent
(macKey.Length);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
371
byte[] encryptedRent = CryptoPool.
Rent
(contentsWriter.GetEncodedLength() + cipherBlockBytes);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
154
IRented = CryptoPool.
Rent
(ILen);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (2)
80
byte[] rented = CryptoPool.
Rent
(bufSize);
151
byte[] rented = CryptoPool.
Rent
(dsa.KeySize / 8);
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (2)
85
byte[] rented = CryptoPool.
Rent
(bufSize);
166
byte[] rented = CryptoPool.
Rent
(bufSize);
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
266
rented = CryptoPool.
Rent
(wrappedContent.Length);
System\Security\Cryptography\Pkcs\SignerInfo.cs (2)
674
: (rented = CryptoPool.
Rent
(encodedLength));
791
byte[] rented = CryptoPool.
Rent
(contentToVerifyLength);