2 instantiations of CryptoPoolLease
System.Security.Cryptography (2)
src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (2)
85
return new
CryptoPoolLease
118
return new
CryptoPoolLease
25 references to CryptoPoolLease
System.Security.Cryptography (25)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (6)
159
using (
CryptoPoolLease
lease =
CryptoPoolLease
.Rent(Algorithm.MaxSignatureSizeInBytes, skipClear: true))
1583
using (
CryptoPoolLease
lease =
CryptoPoolLease
.RentConditionally(Algorithm.MaxPublicKeySizeInBytes, destination, skipClear: true))
1708
using (
CryptoPoolLease
lease =
CryptoPoolLease
.RentConditionally(Algorithm.MaxPrivateKeySizeInBytes, destination, skipClearIfNotRented: true))
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (2)
344
using (
CryptoPoolLease
lease =
CryptoPoolLease
.Rent(Algorithm.MaxPrivateKeySizeInBytes))
src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (3)
81
internal static
CryptoPoolLease
Rent(int length, bool skipClear = false)
93
internal static
CryptoPoolLease
RentConditionally(
107
internal static
CryptoPoolLease
RentConditionally(
System\Security\Cryptography\Aes.cs (6)
184
using (
CryptoPoolLease
lease =
CryptoPoolLease
.Rent(ciphertext.Length - 8, skipClear: true))
278
CryptoPoolLease
lease =
CryptoPoolLease
.RentConditionally(
440
using (
CryptoPoolLease
lease =
CryptoPoolLease
.Rent(len))
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (8)
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))