OpenSSL ECC Engine  1.0
OpenSSL Engine implementation using ATECC508 for ECC key storage and ECDSA, ECDH, and RNG.
Functions | Variables
eccx08_ecdh.c File Reference

Implementation of OpenSSL ENGINE callback functions for ECDH See reference code at crypto/ecdh/ech_ossl.c. More...

#include <stdint.h>
#include <limits.h>
#include <string.h>
#include <assert.h>
#include <openssl/engine.h>
#include <crypto/ec/ec_lcl.h>
#include <crypto/ecdh/ech_locl.h>
#include <crypto/ecdsa/ecs_locl.h>
#include <ssl/ssl_locl.h>
#include <err.h>
#include "ecc_meth.h"

Functions

int eccx08_ecdh_init (uint32_t use_software)
 Initialize the ECDH method for ateccx08 engine. More...
 

Variables

ECDH_METHOD eccx08_ecdh
 eccx08_ecdh is an OpenSSL ECDH_METHOD structure specific to the ateccx08 engine. See the crypto/ecdh/ech_locl.h file for details on the ECDH_METHOD structure. Note that ECDH method requires a patch to be applied to the openssl code. More...
 

Detailed Description

Implementation of OpenSSL ENGINE callback functions for ECDH See reference code at crypto/ecdh/ech_ossl.c.

Copyright (c) 2015 Atmel Corporation. All rights reserved.

Function Documentation

int eccx08_ecdh_init ( uint32_t  use_software)

Initialize the ECDH method for ateccx08 engine.

Returns
1 for success

Variable Documentation

ECDH_METHOD eccx08_ecdh
Initial value:
= {
"Atmel ECCX08 ECDH method",
ECDH_eccx08_compute_key,
ECDH_eccx08_init,
NULL,
0,
NULL
}

eccx08_ecdh is an OpenSSL ECDH_METHOD structure specific to the ateccx08 engine. See the crypto/ecdh/ech_locl.h file for details on the ECDH_METHOD structure. Note that ECDH method requires a patch to be applied to the openssl code.