Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2150,6 +2150,7 @@ private TResult ExportPkcs8PrivateKeyCallback<TResult>(ExportPkcs8PrivateKeyFunc

while (!TryExportPkcs8PrivateKeyCore(buffer, out written))
{
size = buffer.Length;
CryptoPool.Return(buffer);
size = checked(size * 2);
buffer = CryptoPool.Rent(size);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,7 @@ private TResult ExportPkcs8PrivateKeyCallback<TResult>(ExportPkcs8PrivateKeyFunc

while (!TryExportPkcs8PrivateKeyCore(buffer, out written))
{
size = buffer.Length;
CryptoPool.Return(buffer);
size = checked(size * 2);
Comment thread
vcsjones marked this conversation as resolved.
buffer = CryptoPool.Rent(size);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,7 @@ private TResult ExportPkcs8PrivateKeyCallback<TResult>(ExportPkcs8PrivateKeyFunc

while (!TryExportPkcs8PrivateKeyCore(buffer, out written))
{
size = buffer.Length;
CryptoPool.Return(buffer);
size = checked(size * 2);
buffer = CryptoPool.Rent(size);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,7 @@ private TResult ExportPkcs8PrivateKeyCallback<TResult>(Func<ReadOnlySpan<byte>,

while (!TryExportPkcs8PrivateKeyCore(buffer, out written))
{
size = buffer.Length;
CryptoPool.Return(buffer);
size = checked(size * 2);
buffer = CryptoPool.Rent(size);
Expand Down