Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
jwt.h File Reference
#include <zephyr/types.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  jwt_builder
 JWT data tracking. More...
 

Functions

int jwt_init_builder (struct jwt_builder *builder, char *buffer, size_t buffer_size)
 Initialize the JWT builder.
 
int jwt_add_payload (struct jwt_builder *builder, int32_t exp, int32_t iat, const char *aud)
 add JWT primary payload.
 
int jwt_sign (struct jwt_builder *builder, const char *der_key, size_t der_key_len)
 Sign the JWT token.
 
static size_t jwt_payload_len (struct jwt_builder *builder)