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