2 instantiations of CryptoPoolLease
System.Security.Cryptography (2)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (2)
85return new CryptoPoolLease 118return new CryptoPoolLease
32 references to CryptoPoolLease
System.Security.Cryptography (32)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (6)
159using (CryptoPoolLease lease = CryptoPoolLease.Rent(Algorithm.MaxSignatureSizeInBytes, skipClear: true)) 1583using (CryptoPoolLease lease = CryptoPoolLease.RentConditionally(Algorithm.MaxPublicKeySizeInBytes, destination, skipClear: true)) 1708using (CryptoPoolLease lease = CryptoPoolLease.RentConditionally(Algorithm.MaxPrivateKeySizeInBytes, destination, skipClearIfNotRented: true))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (2)
344using (CryptoPoolLease lease = CryptoPoolLease.Rent(Algorithm.MaxPrivateKeySizeInBytes))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (3)
81internal static CryptoPoolLease Rent(int length, bool skipClear = false) 93internal static CryptoPoolLease RentConditionally( 107internal static CryptoPoolLease RentConditionally(
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (3)
73internal static CryptoPoolLease CreateCngBlob(ReadOnlySpan<byte> key, bool privateKey, out byte preservation) 89CryptoPoolLease lease = CryptoPoolLease.Rent(requiredBufferSize, skipClear: !privateKey);
System\Security\Cryptography\Aes.cs (6)
184using (CryptoPoolLease lease = CryptoPoolLease.Rent(ciphertext.Length - 8, skipClear: true)) 278CryptoPoolLease lease = CryptoPoolLease.RentConditionally( 440using (CryptoPoolLease lease = CryptoPoolLease.Rent(len))
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (3)
71using (CryptoPoolLease lease = X25519WindowsHelpers.CreateCngBlob(reducedPublicKey, privateKey: false, out _)) 181using (CryptoPoolLease lease = CryptoPoolLease.Rent(numBytesNeeded, skipClear: !privateKey))
System\Security\Cryptography\X25519DiffieHellmanImplementation.Windows.cs (1)
224using (CryptoPoolLease lease = X25519WindowsHelpers.CreateCngBlob(key, privateKey, out preservation))
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (8)
865using (CryptoPoolLease pk1 = CryptoPoolLease.Rent(publicKey.Algorithm.EncapsulationKeySizeInBytes, skipClear: true)) 866using (CryptoPoolLease pk2 = CryptoPoolLease.Rent(publicKey.Algorithm.EncapsulationKeySizeInBytes, skipClear: true)) 967using (CryptoPoolLease pk1 = CryptoPoolLease.Rent(publicKey.Algorithm.PublicKeySizeInBytes, skipClear: true)) 968using (CryptoPoolLease pk2 = CryptoPoolLease.Rent(publicKey.Algorithm.PublicKeySizeInBytes, skipClear: true))