Skip to content

Commit

Permalink
DSAParameters.Y should be padded (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdettman authored May 10, 2024
1 parent e19a419 commit 0c26349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MimeKit/Cryptography/AsymmetricAlgorithmExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ static AsymmetricAlgorithm GetAsymmetricAlgorithm (DsaPrivateKeyParameters key,
static AsymmetricAlgorithm GetAsymmetricAlgorithm (DsaPublicKeyParameters key)
{
var parameters = GetDSAParameters (key);
parameters.Y = key.Y.ToByteArrayUnsigned ();
parameters.Y = GetPaddedByteArray (key.Y, parameters.P.Length);

var dsa = new DSACryptoServiceProvider ();

Expand Down

0 comments on commit 0c26349

Please sign in to comment.