Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
balaji-reddy opened this issue Nov 5, 2018 · 0 comments
Open

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

balaji-reddy opened this issue Nov 5, 2018 · 0 comments

Comments

@balaji-reddy
Copy link

balaji-reddy commented Nov 5, 2018

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 balaji-reddy changed the title Does it work with ATSAMD21 dev kit with AT88CKSCKTSOIC-XPRO(contains ECC608) on Linux? Linux, Segmentation fault in lib/openssl/eccx08_ecdh.c Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant