zephyr/subsys/jwt/jwt.h
Valerio Setti ec3dea2b45 jwt: reshape and add alternative for ECDSA using PSA
This commit:

- creates 2 new files, jwt_ecdsa.c and jwt_rsa.c, to hold the
  implementations of the corresponding ECDSA/RSA signature
  algorithms;
- RSA signature is stil done through Mbed TLS's PK module which
  can optionally make use of PSA (if enabled);
- ECDSA signature will instead use PSA, if possible, or TinyCrypt
  as fallback.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2024-10-08 18:10:32 -04:00

15 lines
360 B
C

/*
* Copyright (C) 2024 BayLibre SAS
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_SUBSYS_JWT_JWT_H_
#define ZEPHYR_SUBSYS_JWT_JWT_H_
#include <zephyr/data/jwt.h>
int jwt_sign_impl(struct jwt_builder *builder, const unsigned char *der_key,
size_t der_key_len, unsigned char *sig, size_t sig_size);
#endif /* ZEPHYR_SUBSYS_JWT_JWT_H_ */