ashmish2
ashmish2

Reputation: 2967

how to do cryptography (digital signature)in linux

I have done PKCS_7_ASN_ENCODING | X509_ASN_ENCODING in windows using wincrypt and I have to verify signature in linux. Can anyone tell by about good light crypto api on linux.

On searching I found http://home.gna.org/cryptodev-linux/ and on compiling it i am getting this error crypto/hash.h: No such file or directory

Upvotes: 2

Views: 1999

Answers (3)

jweyrich
jweyrich

Reputation: 32240

This error occurs because you don't have the kernel headers for your system/kernel, therefore when you try to compile, it's unable to find those headers.

More on your end goal, do you want to validate whether a certificate is signed by someone else's certificate?

If so, and if you're open to use OpenSSL, take a look at this answer.

Upvotes: 3

Chris
Chris

Reputation: 2060

I would either go with GPG (it also has its own API, just look on the side) or Beecrypt which is probably a little easier to understand but not as complex in its functionality

Upvotes: 0

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798626

NSS

Upvotes: 2

Related Questions