RE: Crypto Library question

2006-03-21 Thread Friedline, Harold
2.255.8062 What I am looking for is a blessing not in disguise. Jerome K. Jerome -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marek Marcola Sent: Monday, March 20, 2006 4:28 PM To: openssl-users@openssl.org Subject: Re: Crypto Library question H

Re: Crypto Library question

2006-03-20 Thread Dr. Stephen Henson
On Mon, Mar 20, 2006, Friedline, Harold wrote: > I am attempting to write code to utilize the crypto(3) library that > comes with openssl. Specifically, I am using these functions > OpenSSL_add_all_digests(); > md = EVP_get_digestbyname(dgst); > EVP_DigestInit_ex(&mdctx, md, NUL

Re: Crypto Library question

2006-03-20 Thread Girish Venkatachalam
I tried your code and I had a suspicion that using the *_ex() functions along with *() functions can cause trouble. Which is what has happened in your case. Here is the correct code for your reference. You are supposed to stick to either Init_ex() , Final_ex() functions or Init() ,Final() functio

Re: Crypto Library question

2006-03-20 Thread Marek Marcola
Hello > The code compiles and links. Using it, however, produces different > results than using > echo "some string" | openssl dgst -md5 Echo command adds "new line" characters. Try someting like "echo -n" on linux or "\c" on hpux to disable this. Best regards, -- Marek Marcola <[EMAIL

Crypto Library question

2006-03-20 Thread Friedline, Harold
Title: Crypto Library question I am attempting to write code to utilize the crypto(3) library that comes with openssl.  Specifically, I am using these functions OpenSSL_add_all_digests(); md = EVP_get_digestbyname(dgst); EVP_DigestInit_ex(&mdctx, md, NULL); EVP_DigestInit(&m