Re: DSA signing and verification

2008-06-21 Thread Thomas Mangold
ng 0.9.8.e, any known bugs there? Anything else that I can try to get my private and public keys stored and used later on for verification. Thanks in advance. Regards, Sid On Sat, Jun 21, 2008 at 1:47 PM, Thomas Mangold <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

Re: DSA signing and verification

2008-06-21 Thread Thomas Mangold
Hi Siddhartha, the problem is the line EVP_PKEY_assign_DSA(pkey, dsa); you should use EVP_PKEY_set1_DSA() if you want to use the DSA structure later on. Why don't you write out the keys directly with PEM_write_DSAPrivateKey() and PEM_write_DSA_PUBKEY() ? Thomas Siddhartha Chhabra wrote: Hi,

Re: No error messages on Linksys Openwrt

2008-05-26 Thread Thomas Mangold
Thank you, that oppenssl errstr i didn know, it is really usfull Thomas [EMAIL PROTECTED] wrote: Hello, [EMAIL PROTECTED] wrote on 05/26/2008 09:58:29 PM: Hello calling i2d_RSAPublicKey() I get on a linksys running OpenWrt kamikaze 7.09 the following errors. error:0D07207B:lib(13):func(

argument 2 of 'd2i_RSA_PUBKEY' from incompatible pointer type

2008-05-24 Thread Thomas Mangold
Hello, I try to serialise a RSA key into a buffer. I tried both pairs int i2d_RSAPublicKey(RSA *a, unsigned char **pp); RSA * d2i_RSAPublicKey(RSA **a, unsigned char **pp, long length); and RSA * d2i_RSA_PUBKEY(RSA **a, unsigned char **pp, long length); int i2d_RSA_PUBK

Re: [EVP_PKEY] How to duplicate it ?

2008-05-23 Thread Thomas Mangold
Why not just copy the key? EVP_PKEY *cp_key (EVP_PKEY *pkey) { /* error handling omittet */ EVP_PKEY *pnew; int key_type; pnew = EVP_PKEY_new(); switch(pkey->type) { case EVP_PKEY_RSA: DSA *dsa = EVP_PKEY_get1_DSA(pkey); EVP_PKEY_set1_DSA(pnew, dsa);

Signing and Verifying of a public key with a DSA master key

2008-05-10 Thread Thomas Mangold
_verifyKey --> public key q (48 bytes): 768969016486072524144558170934065416490814812281 21:19:53 pers_verifyKey --> public key g (154 bytes): 3553173476319000480323849172700953872902743131825941145971353799053654197254289715921211086624613172598558713446689292640459457466917659881927304

What stands EVP for

2008-02-04 Thread Thomas Mangold
I'm new to openssl trying to integrate encryption into my C code. Reading and trying to understand the concepts I wondered what EVP_* from the higlevel routines stands for. I could not find any explanation of this abbreviation in the documentation or on the web. Thank you Thomas __