decrypt with c# .net code

Hi, we encrypt a file with gpgsm with X.509 certificate.

We will write c# .net code to decrypt this message.

When encrypt - from log:

gpgsm: DBG: hash algo: 1.2.840.113549.1.1.11
gpgsm: DBG: SHA1 Fingerprint:

1.2.840.113549.1.1.11 = sha256RSA

from audit log:
algorithm: AES

Do you have any recommendations on how to do this in c#?

Thanks.

Jo

Hi Jo,
see gpgme bindings at https://wiki.gnupg.org/APIs
otherwise I believe that windows crypto api should give you low level
functions for dealing with the hybrid decryption (though it may take a bit of code to get revocation and other PKIX features working).

Bernhard

Thanks Bernhard

I’m not able to open the link to the C# wrappers “gpgme-sharp” in

https://wiki.gnupg.org/APIs?highlight=(gpgme)|(bindings)

Where can I download the .dll?

Hi Jo,

as this is a wiki, some entries may be out of date.
I’ve at least found a new link to the gpgme-sharp source code.
I cannot say if this is a good base for a library or not.

One additional way is to describe the task you want to solve
and ask on one of the mailinglists for hints.

Best Regards,
Bernhard

Thanks. I will do that.