7#ifndef ZEPHYR_INCLUDE_DATA_JWT_H_
8#define ZEPHYR_INCLUDE_DATA_JWT_H_
93 return (builder->
buf - builder->
base);
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)
Definition: jwt.h:91
int jwt_init_builder(struct jwt_builder *builder, char *buffer, size_t buffer_size)
Initialize the JWT builder.
static ZTEST_BMEM char buffer[8]
Test mailbox enhance capabilities.
Definition: test_mbox_api.c:566
__INT32_TYPE__ int32_t
Definition: stdint.h:44
JWT data tracking.
Definition: jwt.h:32
char * base
Definition: jwt.h:34
unsigned char wip[3]
Definition: jwt.h:50
char * buf
Definition: jwt.h:38
int pending
Definition: jwt.h:53
size_t len
Definition: jwt.h:41
bool overflowed
Definition: jwt.h:47