SmartSnippets DA1459x SDK
Data Structures | Macros | Enumerations | Functions
crypto_ecdh.h File Reference

ECDH API. More...

#include <osal.h>
#include <crypto_ec.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  crypto_ecdh_context_t
 ECDH context. More...
 

Macros

#define CRYPTO_ECDH_INIT_CTX(curve_init)   { {0}, {{0}, {0}}, {{0}, {0}}, {0}, curve_init, 0 }
 Initialize ECDH context. More...
 

Enumerations

enum  CRYPTO_ECDH_RET {
  CRYPTO_ECDH_RET_OK = 0, CRYPTO_ECDH_RET_TO = 1, CRYPTO_ECDH_RET_EE = 2, CRYPTO_ECDH_RET_MP = 3,
  CRYPTO_ECDH_RET_IP = 4, CRYPTO_ECDH_RET_ER = 5
}
 ECDH API return codes. More...
 
enum  crypto_ecdh_context_flags { CRYPTO_ECDH_CTX_d = 0x1, CRYPTO_ECDH_CTX_Ql = 0x2, CRYPTO_ECDH_CTX_Qp = 0x4, CRYPTO_ECDH_CTX_s = 0x8 }
 ECDH context flags type. More...
 

Functions

CRYPTO_ECDH_RET crypto_ecdh_compute (crypto_ecdh_context_t *ctx, OS_TICK_TIME timeout)
 Generate Elliptic Curve Diffie-Hellman (ECDH) key pair. More...
 
CRYPTO_ECDH_RET crypto_ecdh_init_context (crypto_ecdh_context_t *ctx, CRYPTO_ECC_CURVE curve_type)
 Initialize context for use with crypto_ecdh_compute. More...
 

Detailed Description

ECDH API.

Copyright (C) 2016-2018 Renesas Electronics Corporation and/or its affiliates. All rights reserved. Confidential Information.

This software ("Software") is supplied by Renesas Electronics Corporation and/or its affiliates ("Renesas"). Renesas grants you a personal, non-exclusive, non-transferable, revocable, non-sub-licensable right and license to use the Software, solely if used in or together with Renesas products. You may make copies of this Software, provided this copyright notice and disclaimer ("Notice") is included in all such copies. Renesas reserves the right to change or discontinue the Software at any time without notice.

THE SOFTWARE IS PROVIDED "AS IS". RENESAS DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. TO THE MAXIMUM EXTENT PERMITTED UNDER LAW, IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE, EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. USE OF THIS SOFTWARE MAY BE SUBJECT TO TERMS AND CONDITIONS CONTAINED IN AN ADDITIONAL AGREEMENT BETWEEN YOU AND RENESAS. IN CASE OF CONFLICT BETWEEN THE TERMS OF THIS NOTICE AND ANY SUCH ADDITIONAL LICENSE AGREEMENT, THE TERMS OF THE AGREEMENT SHALL TAKE PRECEDENCE. BY CONTINUING TO USE THIS SOFTWARE, YOU AGREE TO THE TERMS OF THIS NOTICE.IF YOU DO NOT AGREE TO THESE TERMS, YOU ARE NOT PERMITTED TO USE THIS SOFTWARE.