Added function to obtain EC params from root CA cert.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-06-10 16:28:55 +02:00
parent 76a41dffa1
commit 824c327a2c
2 changed files with 36 additions and 28 deletions

View File

@@ -20,6 +20,7 @@
#include <stdlib.h>
#include "pico/stdlib.h"
#include "mbedtls/ecp.h"
typedef struct PUK {
const uint8_t *puk;
@@ -42,5 +43,6 @@ extern const uint8_t *cvc_get_car(const uint8_t *data, size_t len, size_t *olen)
extern const uint8_t *cvc_get_chr(const uint8_t *data, size_t len, size_t *olen);
extern const uint8_t *cvc_get_pub(const uint8_t *data, size_t len, size_t *olen);
extern int cvc_verify(const uint8_t *cert, size_t cert_len, const uint8_t *ca, size_t ca_len);
extern mbedtls_ecp_group_id cvc_inherite_ec_group(const uint8_t *ca, size_t ca_len);
#endif