32 lines
772 B
C
32 lines
772 B
C
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
#include "mbedtls/config.h"
|
|
|
|
#include "mbedtls/aes.h"
|
|
#include "mbedtls/bignum.h"
|
|
#include "mbedtls/ctr_drbg.h"
|
|
#include "mbedtls/entropy.h"
|
|
#include "mbedtls/ecp.h"
|
|
#include "mbedtls/ecdh.h"
|
|
#include "mbedtls/ecdsa.h"
|
|
#include "mbedtls/hmac_drbg.h"
|
|
#include "mbedtls/hkdf.h"
|
|
#include "mbedtls/md.h"
|
|
#include "mbedtls/pk.h"
|
|
#include "mbedtls/rsa.h"
|
|
#include "mbedtls/sha1.h"
|
|
#include "mbedtls/sha256.h"
|
|
|
|
#include "defines.h"
|
|
|
|
/*
|
|
DIMASTATUS AsymmKeyGen(KeyDrv_context* KD_ctx);
|
|
DIMASTATUS use_dev_random(void *data, unsigned char *output, size_t len, size_t *olen );
|
|
DIMASTATUS seedRNGSource(void *data, unsigned char *output, size_t len);
|
|
*/
|
|
|
|
DIMASTATUS AsymmKeyGen(KeyDrv_context * KD_ctx); |