/** * @file axEccRefPem.h * @author NXP Semiconductors * @version 1.0 * @par License * * Copyright 2017 NXP * SPDX-License-Identifier: Apache-2.0 * * @par Description * Interface to creating a reference ECC pem file */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sm_types.h" #include "ax_api.h" #include "sm_printf.h" #ifdef __cplusplus extern "C" { #endif #ifndef _AXECCREFPEM_H #define _AXECCREFPEM_H #define EMBSE_REFKEY_ID 0xA5A6B5B6 //!< Part of signature to indicate that the key is a reference to a key stored in the Secure Element. Embedded in private key value. #define MAX_ECC_256_PUB_KEY_BYTE_LEN 65 U16 axEccWritePemRefKey(U8 storageClass, U8 keyIndex, const char* filepath, const U8 *pubKey, U16 pubKeyLen); U16 axEccGenRefKey(EC_KEY *eckey, int nid, U8 storageClass, U8 keyIndex, const U8 *pubKey, U16 pubKeyLen); #ifdef __cplusplus } #endif #endif // _AXECCREFPEM_H