Re: sha-256 program example

2009-10-06 Thread Reid Thompson
Dr. Stephen Henson wrote: Both of these use the low level APIs which are deprecated. The approved technique is using EVP. http://www.openssl.org/docs/crypto/EVP_DigestInit.html#EXAMPLE Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: h

Re: sha-256 program example

2009-10-06 Thread Jeffrey Walton
Hi Doctor, Form the docs: SHA1 is the digest of choice for new applications. It appears the docs are bit dated. Depending on the application, I believe NIST recommends that new applications use SHA-2 family (circa 2006 [1]), and requires SHA-2 after 2010 [2]. Considering McDonald, Hawkes, and

Creating Encryption/Decryption Filter C++

2009-10-06 Thread Patel, Anand
I would like to know how can I implement general purpose encryption/decryption filter that can be used with BIO objects. Basically, filter should get the data before it is written out to the stream/socket/memory. This allows my filter to encrypt/decrypt the data for any kind of source/sink object

Re: sha-256 program example

2009-10-06 Thread Dr. Stephen Henson
On Tue, Oct 06, 2009, Reid Thompson wrote: > On Tue, 2009-10-06 at 10:44 -0500, Dwight Schauer wrote: > > http://stackoverflow.com/questions/918676/generate-sha-hash-in-openssl > > > > Replace SHA1 with SHA256. > > Replace 20 with SHA256_DIGEST_LENGTH. > > > > > > > Could someone point me to a

Re: What can prevent a certificate being used for digital signature validation?

2009-10-06 Thread Kyle Hamilton
For future reference, 'openssl x509 -noout -text -in [certfilename]' will give a full list of everything in the certificate, in a text format suitable for human comprehension without additional tools. As a later message from you suggests you discovered, "failed to validate signature" means one of

ts command in openssl

2009-10-06 Thread Jean-Max Reymond
hi I am looking for command ts in openssl openssl 0.98k does not recognize this option described in the documentation :-( thanks for any tips -- Jean-Max Reymond Eruption de l'Etna: http://jmreymond.free.fr/Etna2002 __ OpenSS

RE: sha-256 program example

2009-10-06 Thread Reid Thompson
On Tue, 2009-10-06 at 10:44 -0500, Dwight Schauer wrote: > http://stackoverflow.com/questions/918676/generate-sha-hash-in-openssl > > Replace SHA1 with SHA256. > Replace 20 with SHA256_DIGEST_LENGTH. > > > Could someone point me to an example C program, docs that show how to > generate a sha-25

RE: sha-256 program example

2009-10-06 Thread Dwight Schauer
http://stackoverflow.com/questions/918676/generate-sha-hash-in-openssl Replace SHA1 with SHA256. Replace 20 with SHA256_DIGEST_LENGTH. -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Reid Thompson Sent: Tuesday, October 06,

sha-256 program example

2009-10-06 Thread Reid Thompson
Could someone point me to an example C program, docs that show how to generate a sha-256 digest for a buffer? The buffer will be less than 128 chars. Thanks, reid __ OpenSSL Project http://www.ope