Use hash one-shots in RSA/DSACryptoServiceProvider
authorKevin Jones <kevin@vcsjones.com>
Tue, 1 Feb 2022 20:10:59 +0000 (15:10 -0500)
committerGitHub <noreply@github.com>
Tue, 1 Feb 2022 20:10:59 +0000 (15:10 -0500)
commit51056be22c66730aaf3a42a38593fac3e83fd325
treee5091791e2f0afeaa59c0b8731ad35704d738db7
parent3225c7266e56aed6970d3c3ca404685be3c5d86e
Use hash one-shots in RSA/DSACryptoServiceProvider

The CryptoServiceProviders were not disposing of hash instances that they created. Rather than fix the disposal, they were converted to one-shots.
src/libraries/Common/src/Internal/Cryptography/Helpers.cs
src/libraries/Common/src/System/Security/Cryptography/HashOneShotHelpers.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CapiHelper.Windows.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/DSACryptoServiceProvider.Windows.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSACryptoServiceProvider.Windows.cs