Functions#

nvat_rc_t nvat_claims_collection_extend(nvat_claims_collection_t nvat_claims_collection, const nvat_claims_collection_t other_claims_collection)

void nvat_claims_collection_free(nvat_claims_collection_t *claims_collection)

nvat_rc_t nvat_claims_collection_serialize_json(const nvat_claims_collection_t claims, nvat_str_t *out_serialized_claims)

Serialize the given claims collection to JSON.

nvat_rc_t nvat_get_detached_eat_es384(const nvat_claims_collection_t claims, const char *private_key_pem, const char *issuer, const char *kid, nvat_str_t *out_detached_eat)

nvat_rc_t nvat_nonce_create(nvat_nonce_t *out_nonce, size_t length)

Generate a secure random nonce with the given length.

void nvat_nonce_free(nvat_nonce_t *nonce)

nvat_rc_t nvat_nonce_from_hex(nvat_nonce_t *out_nonce, const char *hex_string)

Create a nonce from a hex-encoded string.

size_t nvat_nonce_get_length(const nvat_nonce_t nonce)

Get the number of bytes in the given nonce.

nvat_rc_t nvat_nonce_to_hex_string(const nvat_nonce_t nonce, nvat_str_t *out_str)

Encode the given nonce as a C-string.