24#ifndef __CC_INTERNAL_H__
25#define __CC_INTERNAL_H__
26#include "crys_ecpki_types.h"
27#include "crys_ec_mont_api.h"
32#define CURVE_25519_KEY_SIZE 32
38#define MAX_KEY_SIZE_IN_BYTES ( ( CRYS_ECPKI_MODUL_MAX_LENGTH_IN_WORDS ) * SASI_32BIT_WORD_SIZE)
42 CRYS_ECPKI_UserPublKey_t pubKey;
43 CRYS_ECPKI_UserPrivKey_t privKey;
44 CRYS_ECPKI_KG_TempData_t kgTempData;
48 CRYS_ECPKI_UserPublKey_t pubKey;
49 CRYS_ECPKI_UserPrivKey_t privKey;
50 CRYS_ECDH_TempData_t ecdhTempData;
54 CRYS_ECPKI_UserPublKey_t pubKey;
55 CRYS_ECDSA_VerifyUserContext_t verifyContext;
59 CRYS_ECPKI_UserPrivKey_t privKey;
60 CRYS_ECDSA_SignUserContext_t signContext;
64 uint8_t pubKey[CURVE_25519_KEY_SIZE];
65 uint8_t privKey[CURVE_25519_KEY_SIZE];
66 CRYS_ECMONT_TempBuff_t kgTempData;
85 int (*f_rng)(
void* ctx,
unsigned char* output,
size_t outSizeBytes );
117uint32_t convert_mbedtls_to_cc_rand(
void* mbedtls_rand, uint16_t outSizeBytes, uint8_t* out_ptr );
127int convert_CrysError_to_mbedtls_err( CRYSError_t Crys_err );
mbedtls_ecp_group_id
Domain-parameter identifiers: curve, subgroup, and generator.
This file provides an API for Elliptic Curves over GF(P) (ECP).