LibJWT 3.2.0
The C JSON Web Token Library +JWK +JWKS
|
Enumerations | |
enum | jwt_alg_t { JWT_ALG_NONE = 0 , JWT_ALG_HS256 , JWT_ALG_HS384 , JWT_ALG_HS512 , JWT_ALG_RS256 , JWT_ALG_RS384 , JWT_ALG_RS512 , JWT_ALG_ES256 , JWT_ALG_ES384 , JWT_ALG_ES512 , JWT_ALG_PS256 , JWT_ALG_PS384 , JWT_ALG_PS512 , JWT_ALG_ES256K , JWT_ALG_EDDSA , JWT_ALG_INVAL } |
JWT algorithm types. More... | |
Functions | |
jwt_alg_t | jwt_get_alg (const jwt_t *jwt) |
const char * | jwt_alg_str (jwt_alg_t alg) |
jwt_alg_t | jwt_str_alg (const char *alg) |
Utility functions to convert between string and type for alg
enum jwt_alg_t |
JWT algorithm types.
These are the supported algorithm types for LibJWT.
const char * jwt_alg_str | ( | jwt_alg_t | alg | ) |
Convert alg type to it's string representation.
Returns a string that matches the alg type provided.
alg | A valid jwt_alg_t specifier. |
jwt_alg_t jwt_str_alg | ( | const char * | alg | ) |
Convert alg string to type.
Returns an alg type based on the string representation.
alg | A valid string for algorithm type (e.g. "RS256"). |