cryptoauth-openssl-engine icon indicating copy to clipboard operation
cryptoauth-openssl-engine copied to clipboard

Linux, Segmentation fault in lib/openssl/eccx08_ecdh.c

Open balaji-reddy opened this issue 7 years ago • 0 comments

I noticed the segmentation fault \when I tried to execute TLS authentication example. This error occurs in one of the debug function where it prints the eckey and so it's not trivial but blocking issue.

To unblock yourself, just comment the below line in lib/openssl/eccx08_ecdh.c

static int eccx08_ecdh_compute_key(void *out, size_t outlen, 
    const EC_POINT *pub_key, EC_KEY *ecdh, 
    void* (*KDF)(const void *in, size_t inlen, void *out, size_t *outlen))
{
    DEBUG_ENGINE("Entered: outlen %d\n", outlen);

    // eccx08_eckey_debug(NULL, ecdh);
   
    ........................

balaji-reddy avatar Nov 05 '18 20:11 balaji-reddy