82 references to Rent
System.Security.Cryptography (82)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Encode.cs (1)
61byte[] data = CryptoPool.Rent(size);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs (2)
149byte[] rented = CryptoPool.Rent(size); 200byte[] rented = CryptoPool.Rent(size);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.PooledCrypto.cs (1)
26byte[] bytes = CryptoPool.Rent(targetSize);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
253byte[] rented = CryptoPool.Rent(writer.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (2)
1885byte[] buffer = CryptoPool.Rent(size); 1893buffer = CryptoPool.Rent(size);
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\MLDsa.cs (4)
2084byte[] rented = CryptoPool.Rent(publicKeySizeInBytes); 2183byte[] buffer = CryptoPool.Rent(size); 2190buffer = CryptoPool.Rent(size); 2247byte[] rent = CryptoPool.Rent(privateKeySize);
src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (1)
33byte[] rented = CryptoPool.Rent(alg.PrivateKeySizeInBytes);
src\libraries\Common\src\System\Security\Cryptography\MLDsaPkcs8.cs (2)
33rented = CryptoPool.Rent(seedSize); 42rented = CryptoPool.Rent(privateKeySize);
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (6)
1668byte[] encapsulationKeyBuffer = CryptoPool.Rent(encapsulationKeySize); 1759byte[] rent = CryptoPool.Rent(decapsulationKeySize); 1804byte[] rented = CryptoPool.Rent(initialSize); 1810rented = CryptoPool.Rent(rented.Length * 2); 1834byte[] buffer = CryptoPool.Rent(size); // Only passed out as span, callees can't keep a reference to it 1841buffer = CryptoPool.Rent(size);
src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.cs (1)
22byte[] rented = CryptoPool.Rent(alg.DecapsulationKeySizeInBytes);
src\libraries\Common\src\System\Security\Cryptography\MLKemPkcs8.cs (2)
33rented = CryptoPool.Rent(seedSize); 42rented = CryptoPool.Rent(decapsulationKeySize);
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\PemKeyHelpers.Factory.cs (2)
71byte[] decodeBuffer = CryptoPool.Rent(base64size); 136byte[] decodeBuffer = CryptoPool.Rent(base64size);
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);
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
145byte[] rented = CryptoPool.Rent(pkcs1PublicKey.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
91byte[] buf = CryptoPool.Rent(rsaSize); 131rent = CryptoPool.Rent(keySizeBytes);
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (3)
349dbMask = CryptoPool.Rent(db.Length); 421byte[] dbMaskRented = CryptoPool.Rent(dbLen); 519byte[] dbMaskRented = CryptoPool.Rent(maskedDb.Length);
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (2)
1958byte[] buffer = CryptoPool.Rent(size); 1965buffer = CryptoPool.Rent(size);
src\libraries\Common\src\System\Security\Cryptography\Utf8DataEncoding.cs (1)
20(_rented = CryptoPool.Rent(maxLength));
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
650byte[] rented = CryptoPool.Rent(totalLength);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (3)
972_decryptBuffer = CryptoPool.Rent(upperBound); 1095_keyDecryptBuffer = CryptoPool.Rent(spaceRequired); 1318byte[] ret = CryptoPool.Rent(writer.GetEncodedLength());
System\Security\Cryptography\AsymmetricAlgorithm.cs (2)
788byte[] buf = CryptoPool.Rent(bufSize); 818byte[] buf = CryptoPool.Rent(bufSize);
System\Security\Cryptography\Base64Transforms.cs (2)
158transformBuffer = transformBufferArray = CryptoPool.Rent(inputCount); 204transformBuffer = transformBufferArray = CryptoPool.Rent(inputCount);
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
777basePointBytes = rented = CryptoPool.Rent(basePointLength); 805publicKeyBytes = rented = CryptoPool.Rent(publicKeyLength);
System\Security\Cryptography\Helpers.cs (1)
538? (rented = CryptoPool.Rent(messageLength))
System\Security\Cryptography\HKDFManagedImplementation.cs (1)
36rentedTempInfoBuffer = CryptoPool.Rent(info.Length);
System\Security\Cryptography\LiteHashProvider.cs (2)
116byte[] rented = CryptoPool.Rent(4096); 147byte[] rented = CryptoPool.Rent(4096);
System\Security\Cryptography\LiteHashProvider.Xof.cs (1)
132byte[] rented = CryptoPool.Rent(4096);
System\Security\Cryptography\OpenSslCipherLite.cs (2)
66byte[] rented = CryptoPool.Rent(input.Length); 106byte[] tmp = CryptoPool.Rent(input.Length);
System\Security\Cryptography\PemKeyHelpers.cs (4)
32byte[] buffer = CryptoPool.Rent(bufferSize); 68byte[] buffer = CryptoPool.Rent(bufferSize); 137byte[] decodeBuffer = CryptoPool.Rent(base64size); 223byte[] decodeBuffer = CryptoPool.Rent(base64size);
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (1)
282(rentedPasswordBuffer = CryptoPool.Rent(maxEncodedSize)) :
System\Security\Cryptography\RSA.cs (3)
684byte[] hash = CryptoPool.Rent(i); 734byte[] rented = CryptoPool.Rent(rentSize); 777byte[] rented = CryptoPool.Rent(rentSize);
System\Security\Cryptography\UniversalCryptoDecryptor.cs (3)
89rentedCiphertext = CryptoPool.Rent(inputBuffer.Length); 96rentedCiphertext = CryptoPool.Rent(rentedCiphertextSize); 137byte[] rented = CryptoPool.Rent(inputCount + InputBlockSize);
System\Security\Cryptography\UniversalCryptoOneShot.cs (1)
167byte[] rentedBuffer = CryptoPool.Rent(input.Length);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
1114newSerialNumber = CryptoPool.Rent(serialNumber.Length + 1); 1128newSerialNumber = CryptoPool.Rent(contentLength);
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (1)
290tempChainRent = CryptoPool.Rent(targetSize);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1561byte[] certBytes = CryptoPool.Rent(fields.DecodedDataLength);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (2)
511byte[] buf = CryptoPool.Rent(sizeHint); 518buf = CryptoPool.Rent(sizeHint);