Hi,
We had a product which generate RSA/MD5 certificate.
Now I'm working on a custom openssl engine.
The goal is to generate X509 certificate with some new signature/digest
algorithms.
With engine, we do not need to re-code too much.
Now we can generate and sign certificate, but X509_verify() fai
Hi,
We had a product which generate RSA/MD5 certificate.
Now I'm working on a custom openssl engine.
The goal is to generate X509 certificate with some new signature/digest
algorithms.
With engine, we do not need to re-code too much.
Now we can generate and sign certificate, but X509_verify() fai
Thank you, I rewrite the code ,but 0x00 is still trimmed off.
int main()
{
unsigned char *buf = NULL,*temp_buf = NULL;
int buflen = 128;
ASN1_BIT_STRING *bs = NULL,*bs2 = NULL;
int i = 0,j = 0;
int ret = 0;
int derlen = 0;
unsigned char *p = NULL;
buf = OPENSSL_malloc(150);
temp_buf = OPE
Hi,
I have a problem with i2d_ASN1_BIT_STRING().
If I set data with a 0x00-terminated string , i2d_ASN1_BIT_STRING() will
trim off 0x00.
Here is a sample code:
--
#include
#include "openssl/asn1.h"
int main()
{
unsigned char *buf = NULL,*temp_buf = NULL;
int
but I tried md = EVP_get_digestbynid(NID_md5), still NULL
On Thu, Mar 14, 2013 at 11:54 AM, Viktor Dukhovni <
openssl-us...@dukhovni.org> wrote:
> On Thu, Mar 14, 2013 at 11:34:12AM +0800, cellecial wrote:
>
> > I'm frustrated that I can't get correct resu
On Wed, Jan 30, 2013 at 9:51 PM, Dr. Stephen Henson wrote:
>
> If you want it to just use the curve name instead you have to call:
>
> EC_KEY_set_asn1_flag(eckey, OPENSSL_EC_NAMED_CURVE);
>
> Steve.
> --
>
>
It's efficacious.
After I call EC_KEY_set_asn1_flag() before EC_KEY_generate_key(), the
I can do to make it work?
On Sun, Dec 11, 2011 at 8:51 PM, Dr. Stephen Henson wrote:
> On Sun, Dec 11, 2011, cellecial wrote:
>
> > Thank you. I add "OpenSSL_add_all_algorithms();" in main function and
> > include "openssl/evp.h",but it still pops error dia
Thank you. I add "OpenSSL_add_all_algorithms();" in main function and
include "openssl/evp.h",but it still pops error dialogue after a while.
Some threads can end well, others are not so lucky.
On Sun, Dec 11, 2011 at 8:14 PM, Dr. Stephen Henson wrote:
> On Sun, Dec 11
Hi,
I wrote a simple pkcs12 demo(under Windows), it just read from a PKCS12
file and got private key and certificate.
If I use single thread, it works fine.
If I use multi-thread, it works fine for a while ,then popups an error
dialogue "heap is corrupt".If I debug it in Visual Studio,
Hi,
I need to encrypt data using C+openssl,then decrypt data using JAVA+SUNJCE.
When I encrypt the same plaintext using openssl and sunjce,
I found the two ciphertexts are different.
I tried two algorithms:EVP_des_ede() / "DES" ,EVP_rc4() / "RC4",
but the results are all depressing.
I googled a p
Hi,
What I do is to generate a certificate and verify it,
below is some source code:
**--**
/** generate a certificate: X509 *cert **/
.
/** sign cert using CACert's private key **/
if (X509_sign(cert, ca_priv_key, dige
11 matches
Mail list logo