49 references to CryptoPool
System.Security.Cryptography.Pkcs (49)
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (2)
199
cek =
CryptoPool
.Rent(privateKey.KeySize / 8);
220
CryptoPool
.Return(cek, cekLength);
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (1)
253
byte[] rented =
CryptoPool
.Rent(writer.GetEncodedLength());
src\libraries\Common\src\System\Security\Cryptography\CryptoPool.cs (2)
64
CryptoPool
.Return(_rented, clearSize);
83
byte[] rented =
CryptoPool
.Rent(length);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (10)
118
byte[] decrypted =
CryptoPool
.Rent(epki.EncryptedData.Length);
154
CryptoPool
.Return(decrypted, clearSize: 0);
203
byte[] encryptedRent =
CryptoPool
.Rent(
247
CryptoPool
.Return(encryptedRent, clearSize: 0);
302
CryptoPool
.Return(decrypted);
333
CryptoPool
.Return(decrypted);
361
byte[] decrypted =
CryptoPool
.Rent(epki.EncryptedData.Length);
378
CryptoPool
.Return(decrypted);
415
CryptoPool
.Return(decrypted);
451
CryptoPool
.Return(decrypted);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (10)
188
rented =
CryptoPool
.Rent(byteCount);
223
CryptoPool
.Return(rented, clearSize: 0);
326
byte[] sourceRent =
CryptoPool
.Rent(sourceLength);
443
CryptoPool
.Return(sourceRent, sourceLength);
473
rented =
CryptoPool
.Rent(byteCount);
504
CryptoPool
.Return(rented, buf.Length);
925
byte[] rentedEncryptedData =
CryptoPool
.Rent(encryptedData.Length);
926
byte[] rentedDestination =
CryptoPool
.Rent(destination.Length);
971
CryptoPool
.Return(rentedEncryptedData, encryptedData.Length);
972
CryptoPool
.Return(rentedDestination, destination.Length);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
180
rentedAuthSafe =
CryptoPool
.Rent(contentsWriter.GetEncodedLength());
192
rentedMac =
CryptoPool
.Rent(macKey.Length);
293
CryptoPool
.Return(rentedMac, clearSize: 0);
299
CryptoPool
.Return(rentedAuthSafe, clearSize: 0);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (2)
371
byte[] encryptedRent =
CryptoPool
.Rent(contentsWriter.GetEncodedLength() + cipherBlockBytes);
426
CryptoPool
.Return(encryptedRent, clearSize: 0);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (2)
200
CryptoPool
.Return(decrypted);
231
CryptoPool
.Return(decrypted);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (2)
154
IRented =
CryptoPool
.Rent(ILen);
229
CryptoPool
.Return(IRented, clearSize: 0);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (4)
80
byte[] rented =
CryptoPool
.Rent(bufSize);
98
CryptoPool
.Return(rented, bufSize);
151
byte[] rented =
CryptoPool
.Rent(dsa.KeySize / 8);
179
CryptoPool
.Return(rented, bytesWritten);
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (4)
85
byte[] rented =
CryptoPool
.Rent(bufSize);
103
CryptoPool
.Return(rented, bufSize);
166
byte[] rented =
CryptoPool
.Rent(bufSize);
194
CryptoPool
.Return(rented, bytesWritten);
System\Security\Cryptography\Pkcs\SignedCms.cs (2)
266
rented =
CryptoPool
.Rent(wrappedContent.Length);
287
CryptoPool
.Return(rented, bytesWritten);
System\Security\Cryptography\Pkcs\SignerInfo.cs (4)
674
: (rented =
CryptoPool
.Rent(encodedLength));
687
CryptoPool
.Return(rented);
791
byte[] rented =
CryptoPool
.Rent(contentToVerifyLength);
800
CryptoPool
.Return(rented);