78 references to Return
System.Security.Cryptography (78)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Encode.cs (1)
72
CryptoPool.
Return
(data);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.PooledCrypto.cs (1)
32
CryptoPool.
Return
(bytes);
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (2)
1891
CryptoPool.
Return
(buffer);
1909
CryptoPool.
Return
(buffer, written);
src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (2)
20
Return
(arraySegment.Array, clearSize == ClearAll ? arraySegment.Count : clearSize);
64
CryptoPool.
Return
(_rented, clearSize);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (3)
154
CryptoPool.
Return
(decrypted, clearSize: 0);
247
CryptoPool.
Return
(encryptedRent, clearSize: 0);
378
CryptoPool.
Return
(decrypted);
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (4)
2113
CryptoPool.
Return
(rented, clearSize: 0);
2188
CryptoPool.
Return
(buffer);
2206
CryptoPool.
Return
(buffer, written);
2270
CryptoPool.
Return
(rent, privateKeySize);
src\libraries\Common\src\System\Security\Cryptography\MLDsaImplementation.cs (1)
50
CryptoPool.
Return
(rented);
src\libraries\Common\src\System\Security\Cryptography\MLDsaPkcs8.cs (1)
68
CryptoPool.
Return
(rented, written);
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (6)
1695
CryptoPool.
Return
(encapsulationKeyBuffer, clearSize: 0); // SPKI is public info, skip clear.
1782
CryptoPool.
Return
(rent, decapsulationKeySize);
1809
CryptoPool.
Return
(rented, 0);
1823
CryptoPool.
Return
(rented, written);
1839
CryptoPool.
Return
(buffer);
1852
CryptoPool.
Return
(buffer, written);
src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.cs (1)
41
CryptoPool.
Return
(rented, size);
src\libraries\Common\src\System\Security\Cryptography\MLKemPkcs8.cs (1)
68
CryptoPool.
Return
(rented, written);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (5)
223
CryptoPool.
Return
(rented, clearSize: 0);
443
CryptoPool.
Return
(sourceRent, sourceLength);
504
CryptoPool.
Return
(rented, buf.Length);
971
CryptoPool.
Return
(rentedEncryptedData, encryptedData.Length);
972
CryptoPool.
Return
(rentedDestination, destination.Length);
src\libraries\Common\src\System\Security\Cryptography\PemKeyHelpers.Factory.cs (2)
91
CryptoPool.
Return
(decodeBuffer, clearSize: bytesWritten);
156
CryptoPool.
Return
(decodeBuffer, clearSize: bytesWritten);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (2)
293
CryptoPool.
Return
(rentedMac, clearSize: 0);
299
CryptoPool.
Return
(rentedAuthSafe, clearSize: 0);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
426
CryptoPool.
Return
(encryptedRent, clearSize: 0);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
229
CryptoPool.
Return
(IRented, clearSize: 0);
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (1)
156
CryptoPool.
Return
(rented, clearSize: 0);
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (2)
103
CryptoPool.
Return
(buf, clearSize: 0);
157
CryptoPool.
Return
(rent, clearSize: 0);
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (3)
378
CryptoPool.
Return
(dbMask, clearSize: 0);
469
CryptoPool.
Return
(dbMaskRented, clearSize: 0);
583
CryptoPool.
Return
(dbMaskRented, clearSize: 0);
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (2)
1963
CryptoPool.
Return
(buffer);
1981
CryptoPool.
Return
(buffer, written);
src\libraries\Common\src\System\Security\Cryptography\Utf8DataEncoding.cs (1)
34
CryptoPool.
Return
(_rented, clearSize: 0);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
578
CryptoPool.
Return
(rented, length);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
936
CryptoPool.
Return
(_decryptBuffer, _decryptBufferOffset);
941
CryptoPool.
Return
(_keyDecryptBuffer, _keyDecryptBufferOffset);
System\Security\Cryptography\AsymmetricAlgorithm.cs (2)
804
CryptoPool.
Return
(buf, bytesWritten);
834
CryptoPool.
Return
(buf, bytesWritten);
System\Security\Cryptography\Base64Transforms.cs (1)
321
CryptoPool.
Return
(array, clearSize);
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
789
CryptoPool.
Return
(rented, clearSize: 0);
817
CryptoPool.
Return
(rented, clearSize: 0);
System\Security\Cryptography\Helpers.cs (1)
566
CryptoPool.
Return
(rented);
System\Security\Cryptography\HKDFManagedImplementation.cs (1)
81
CryptoPool.
Return
(rentedTempInfoBuffer, clearSize: info.Length);
System\Security\Cryptography\LiteHashProvider.cs (2)
133
CryptoPool.
Return
(rented, clearSize: maxRead);
164
CryptoPool.
Return
(rented, clearSize: maxRead);
System\Security\Cryptography\LiteHashProvider.Xof.cs (1)
149
CryptoPool.
Return
(rented, clearSize: maxRead);
System\Security\Cryptography\OpenSslCipherLite.cs (2)
80
CryptoPool.
Return
(rented, clearSize: written);
118
CryptoPool.
Return
(tmp, written);
System\Security\Cryptography\PemKeyHelpers.cs (4)
49
CryptoPool.
Return
(buffer, bytesWritten);
85
CryptoPool.
Return
(buffer, bytesWritten);
159
CryptoPool.
Return
(decodeBuffer, clearSize: bytesWritten);
245
CryptoPool.
Return
(decodeBuffer, clearSize: bytesWritten);
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (1)
298
CryptoPool.
Return
(rentedPasswordBuffer, clearSize: 0); // manually cleared above.
System\Security\Cryptography\RSA.cs (3)
694
CryptoPool.
Return
(hash, hashLength);
753
CryptoPool.
Return
(rented, pkcs1Size);
795
CryptoPool.
Return
(rented, pkcs1Size);
System\Security\Cryptography\UniversalCryptoDecryptor.cs (2)
128
CryptoPool.
Return
(rentedCiphertext, clearSize: rentedCiphertextSize);
149
CryptoPool.
Return
(rented, clearSize: written);
System\Security\Cryptography\UniversalCryptoOneShot.cs (1)
198
CryptoPool.
Return
(rentedBuffer, clearSize: 0); // ZeroMemory clears the part of the buffer that was written to.
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
377
CryptoPool.
Return
(crlDistributionPoints.Array, clearSize: 0);
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (4)
258
CryptoPool.
Return
(authorityInformationAccess.Array!, clearSize: 0);
329
CryptoPool.
Return
(tempChainRent);
786
CryptoPool.
Return
(encoded.Array!, clearSize: 0);
1214
CryptoPool.
Return
(authorityInformationAccess.Array!, clearSize: 0);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1586
CryptoPool.
Return
(certBytes, clearSize: 0);
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Unix.cs (3)
176
CryptoPool.
Return
(rented, length);
517
CryptoPool.
Return
(buf);
606
CryptoPool.
Return
(rented, _clearSize);