Skip to content

Commit

Permalink
913939 Resolved the playground failures in digital signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
sameerkhan001 committed Oct 7, 2024
1 parent c4ea5a3 commit fb9106b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ private void SignDocumentHash(byte[] documentHash)
RSACng rsa = (RSACng)digitalID.PrivateKey;
Program.SignedHash = rsa.SignData(documentHash, System.Security.Cryptography.HashAlgorithmName.SHA1, RSASignaturePadding.Pkcs1);
}
else if (digitalID.PrivateKey is System.Security.Cryptography.RSAOpenSsl)
{
System.Security.Cryptography.RSAOpenSsl rsa = (System.Security.Cryptography.RSAOpenSsl)digitalID.PrivateKey;
Program.SignedHash = rsa.SignData(documentHash, System.Security.Cryptography.HashAlgorithmName.SHA1, RSASignaturePadding.Pkcs1);
}
}
}
/// <summary>
Expand Down
Binary file not shown.

0 comments on commit fb9106b

Please sign in to comment.