MicrochipTech / cryptoauth-openssl-engine

DEPRECATED: Use https://github.com/MicrochipTech/cryptoauthlib/wiki/PKCS11-Linux-Setup
Other
76 stars 49 forks source link

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

Open balaji-reddy opened 5 years ago

balaji-reddy commented 5 years ago

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);

    ........................