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

use correct data type for key_str in get_key,

Open retrnace opened this issue 6 years ago • 0 comments

use correct data type for key_str in get_key

To fix, change the below line in lib/openssl/eccx08_cmd_defns.c

    char* key_str[32];
    EVP_PKEY* pkey;

    DEBUG_ENGINE("Entered\n");

to

    char key_str[32];
    EVP_PKEY* pkey;

    DEBUG_ENGINE("Entered\n");

retrnace avatar Nov 16 '18 00:11 retrnace

Cryptoauthlib which is the core library for using the ATECC508A does also feature a linux userspace i2c driver you can use. We don't have a cython interface for cryptoauthlib so if you want to make calls into the resulting c library directly from python you would end up using ctypes. There are a number of options however for building an interface for you final application and depend on your needs. Some options would be a cython module that provides just the operations you require, a compiled shell application that does the authentication steps, etc.

bryan-hunt avatar Nov 30 '17 15:11 bryan-hunt