Fix a "data too small" error in PasswordBasedEncryption
authorJeremy Barton <jbarton@microsoft.com>
Mon, 11 Nov 2019 20:52:44 +0000 (12:52 -0800)
committerGitHub <noreply@github.com>
Mon, 11 Nov 2019 20:52:44 +0000 (12:52 -0800)
commitadcd55b240c264acdbd5ad7e05fe089e43f64261
tree08dcf0afa876d02356d5cb77d1d08abf02012795
parent0731bee32f17fe69759b3e294d12204f3ca34476
Fix a "data too small" error in PasswordBasedEncryption

Found during the Unix PFX reader/writer work, but wasn't directly relevant to that change.

Commit migrated from https://github.com/dotnet/corefx/commit/2d713265d5aecd5fe34099042e13fe7ba54dcdd1
src/libraries/Common/src/System/Security/Cryptography/PasswordBasedEncryption.cs
src/libraries/System.Security.Cryptography.Pkcs/tests/Pkcs12/Pkcs12BuilderTests.cs