16 references to Rent
System.Security.Cryptography (16)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (2)
159
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(Algorithm.MaxSignatureSizeInBytes, skipClear: true))
1814
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(Algorithm.MaxPrivateKeySizeInBytes))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKem.cs (3)
2119
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(Algorithm.MaxDecapsulationKeySizeInBytes))
2241
CryptoPoolLease lease = CryptoPoolLease.
Rent
(size);
2254
lease = CryptoPoolLease.
Rent
(size);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
127
return
Rent
(length, skipClear);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (1)
205
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(numBytesNeeded, skipClear: !privateKey))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (1)
89
CryptoPoolLease lease = CryptoPoolLease.
Rent
(requiredBufferSize, skipClear: !privateKey);
System\Security\Cryptography\Aes.cs (2)
512
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(ciphertext.Length - 8, skipClear: true))
802
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(len))
System\Security\Cryptography\HpkeManagedKdfAdapter.cs (1)
163
using (CryptoPoolLease labeledIkm = CryptoPoolLease.
Rent
(labeledIkmLength))
System\Security\Cryptography\HpkeManagedKemAdapter.cs (1)
116
using (CryptoPoolLease labeledIkm = CryptoPoolLease.
Rent
(labeledIkmLength))
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (4)
865
using (CryptoPoolLease pk1 = CryptoPoolLease.
Rent
(publicKey.Algorithm.EncapsulationKeySizeInBytes, skipClear: true))
866
using (CryptoPoolLease pk2 = CryptoPoolLease.
Rent
(publicKey.Algorithm.EncapsulationKeySizeInBytes, skipClear: true))
967
using (CryptoPoolLease pk1 = CryptoPoolLease.
Rent
(publicKey.Algorithm.PublicKeySizeInBytes, skipClear: true))
968
using (CryptoPoolLease pk2 = CryptoPoolLease.
Rent
(publicKey.Algorithm.PublicKeySizeInBytes, skipClear: true))