9 references to Rent
System.Security.Cryptography (9)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (1)
159
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(Algorithm.MaxSignatureSizeInBytes, skipClear: true))
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (1)
344
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(Algorithm.MaxPrivateKeySizeInBytes))
src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (1)
127
return
Rent
(length, skipClear);
System\Security\Cryptography\Aes.cs (2)
184
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(ciphertext.Length - 8, skipClear: true))
440
using (CryptoPoolLease lease = CryptoPoolLease.
Rent
(len))
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (4)
868
using (CryptoPoolLease pk1 = CryptoPoolLease.
Rent
(publicKey.Algorithm.EncapsulationKeySizeInBytes, skipClear: true))
869
using (CryptoPoolLease pk2 = CryptoPoolLease.
Rent
(publicKey.Algorithm.EncapsulationKeySizeInBytes, skipClear: true))
973
using (CryptoPoolLease pk1 = CryptoPoolLease.
Rent
(publicKey.Algorithm.PublicKeySizeInBytes, skipClear: true))
974
using (CryptoPoolLease pk2 = CryptoPoolLease.
Rent
(publicKey.Algorithm.PublicKeySizeInBytes, skipClear: true))