4 references to RentConditionally
System.Security.Cryptography (4)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (2)
1593using (CryptoPoolLease lease = CryptoPoolLease.RentConditionally(Algorithm.MaxPublicKeySizeInBytes, destination, skipClear: true)) 1718using (CryptoPoolLease lease = CryptoPoolLease.RentConditionally(Algorithm.MaxPrivateKeySizeInBytes, destination, skipClearIfNotRented: true))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLKem.cs (2)
1896using (CryptoPoolLease lease = CryptoPoolLease.RentConditionally(Algorithm.MaxEncapsulationKeySizeInBytes, destination, skipClear: true)) 2041using (CryptoPoolLease lease = CryptoPoolLease.RentConditionally(Algorithm.MaxDecapsulationKeySizeInBytes, destination, skipClearIfNotRented: true))