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