Re: Yarrow and OpenSSL

2000-08-29 Thread Lutz Jaenicke
On Mon, Aug 28, 2000 at 01:43:05PM -0400, Allen Smith wrote: The Yarrow API is different from other PRNGs in that it differenciates between different randomness sources. That means that applications must call the Yarrow_Input function directly, or the OpenSSL API (RAND_add() and

Convert ASN1_UTCTIME to time_t ?

2000-08-29 Thread Hellan,Kim KHE
Are there any OpenSSL function to convert an ASN1_UTCTIME to a time_t (or a string for that matter)? Also... what about converting an ASN1_INTEGER to a standard 'int'? Med venlig hilsen / Best regards Kim Hellan KMD / KMD-CA http://www.kmd-ca.dk Mailto:[EMAIL PROTECTED]

Re: Convert ASN1_UTCTIME to time_t ?

2000-08-29 Thread Peter Sylvester
Are there any OpenSSL function to convert an ASN1_UTCTIME to a time_t (or a string for that matter)? Somewhere in the following you'll find what you want : time_t TSPX_GENERALIZEDTIME_print(BIO *bp, ASN1_GENERALIZEDTIME *tm,int gmt) { unsigned char strtime[30] ; time_t test

Re: Convert ASN1_UTCTIME to time_t ?

2000-08-29 Thread Peter Sylvester
time_t TSPX_GENERALIZEDTIME_print(BIO *bp, ASN1_GENERALIZEDTIME *tm,int gmt) { ... if (strncmp(tm-data,strtime,15) 0) test -= (time_t)(1 i) ; This is curious code. It is trying to treat the TIME datatype as opaque, but then it looks directly

PEM file format

2000-08-29 Thread Baber Amin
Need info on the PEM format used by openSSL for keys. Is it just b64 encoding of der and other pkcs formats or something more? Any pointers to implementation and/or decoding would be appreciated? Baber Amin __ OpenSSL

Re: PEM file format

2000-08-29 Thread Dr S N Henson
Baber Amin wrote: Need info on the PEM format used by openSSL for keys. Is it just b64 encoding of der and other pkcs formats or something more? Any pointers to implementation and/or decoding would be appreciated? Try reading the docs to the applications, rsa, dsa and pkcs8 they give

Re: Convert ASN1_UTCTIME to time_t ?

2000-08-29 Thread Dr S N Henson
Rich Salz wrote: time_t TSPX_GENERALIZEDTIME_print(BIO *bp, ASN1_GENERALIZEDTIME *tm,int gmt) { ... if (strncmp(tm-data,strtime,15) 0) test -= (time_t)(1 i) ; This is curious code. It is trying to treat the TIME datatype as opaque, but then

problems interfacing to a PKCS11 device

2000-08-29 Thread Eric Gilbertson
Hello: Has anyone out there had any problems interfacing OpenSSL to a PKCS11 device? We are using the scheme outlined in the attached post from Steven Reddie which describes how to add function pointers that replace the standard BSafe crypto calls. The problem is that the code that handles the