From fb9106b28cad22a727ab840c905010c14838db25 Mon Sep 17 00:00:00 2001 From: Sameerkhan Date: Mon, 7 Oct 2024 15:56:04 +0530 Subject: [PATCH] 913939 Resolved the playground failures in digital signature. --- .../Program.cs | 5 +++++ .../Data/SignatureFields.pdf | Bin 3123 -> 4762 bytes 2 files changed, 5 insertions(+) diff --git a/Digital Signature/Deferred-signing-in-PDF-document/.NET/Deferred-signing-in-PDF-document/Program.cs b/Digital Signature/Deferred-signing-in-PDF-document/.NET/Deferred-signing-in-PDF-document/Program.cs index 4efcb1f2..0a9509e3 100644 --- a/Digital Signature/Deferred-signing-in-PDF-document/.NET/Deferred-signing-in-PDF-document/Program.cs +++ b/Digital Signature/Deferred-signing-in-PDF-document/.NET/Deferred-signing-in-PDF-document/Program.cs @@ -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); + } } } /// diff --git a/Digital Signature/Multiple-digital-signature/.NET/Multiple-digital-signature/Data/SignatureFields.pdf b/Digital Signature/Multiple-digital-signature/.NET/Multiple-digital-signature/Data/SignatureFields.pdf index 77de7e3b8ca9243a070628cdc244b264e3d00d75..d8cda757846d762ee5fe828528c7724cf49ed32d 100644 GIT binary patch literal 4762 zcmd5=4U81!89qr$&q>!-1Y#RfKYy+sn%ViEoh5e%yZ3{L2Y0(`uf2n-voqiB4YxaU z%*=8N3F(hqjXwkeq_***mP#}c6k1Ayt@Q^(Q}I+JX;NFUmQZX{6bh|vqqXlhvwyR@ z)-!6-z1+-x?|k3;zTfk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