22 references to Return
System.Security.Cryptography.Pkcs (22)
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (1)
220
CryptoPool.
Return
(cek, cekLength);
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\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\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);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (2)
98
CryptoPool.
Return
(rented, bufSize);
179
CryptoPool.
Return
(rented, bytesWritten);
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (2)
103
CryptoPool.
Return
(rented, bufSize);
194
CryptoPool.
Return
(rented, bytesWritten);
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
287
CryptoPool.
Return
(rented, bytesWritten);
System\Security\Cryptography\Pkcs\SignerInfo.cs (2)
687
CryptoPool.
Return
(rented);
800
CryptoPool.
Return
(rented);