table of contents
| jwt_crypto_grp(3) | Library Functions Manual | jwt_crypto_grp(3) |
NAME¶
jwt_crypto_grp - Cryptographic Ops
SYNOPSIS¶
Enumerations¶
enum jwt_crypto_provider_t { JWT_CRYPTO_OPS_NONE =
0, JWT_CRYPTO_OPS_OPENSSL, JWT_CRYPTO_OPS_GNUTLS,
JWT_CRYPTO_OPS_MBEDTLS, JWT_CRYPTO_OPS_ANY }
Different providers for crypto operations.
Functions¶
const char * jwt_get_crypto_ops (void)
jwt_crypto_provider_t jwt_get_crypto_ops_t (void)
int jwt_set_crypto_ops (const char *opname)
int jwt_set_crypto_ops_t (jwt_crypto_provider_t opname)
int jwt_crypto_ops_supports_jwk (void)
Detailed Description¶
Functions used to set and get which crypto operations are used
LibJWT supports several crypto libraries, mainly 'openssl', 'gnutls', and 'mbedtls'. By default, 'openssl' is used.
Warning
Remarks
Enumeration Type Documentation¶
enum jwt_crypto_provider_t¶
Different providers for crypto operations. Used to set or test the underlying cryptographic library provider.
Remarks
Enumerator
- JWT_CRYPTO_OPS_NONE
- Used for error handling
- JWT_CRYPTO_OPS_OPENSSL
- OpenSSL Library
- JWT_CRYPTO_OPS_GNUTLS
- GnuTLS Library
- JWT_CRYPTO_OPS_MBEDTLS
- MBedTLS embedded library
- JWT_CRYPTO_OPS_ANY
- Used internally for hmac keys
Function Documentation¶
int jwt_crypto_ops_supports_jwk (void)¶
Check if the current crypto operations support JWK usage
Returns
const char * jwt_get_crypto_ops (void)¶
Retrieve the name of the current crypto operations being used.
Returns
jwt_crypto_provider_t jwt_get_crypto_ops_t (void)¶
Retrieve the type of the current crypto operations being used.
Returns
int jwt_set_crypto_ops (const char * opname)¶
Set the crypto operations to the named set.
The opname is one of the available operators in the compiled version of LibJWT. Most times, this is either 'openssl' or 'gnutls'.
Parameters
Returns
int jwt_set_crypto_ops_t (jwt_crypto_provider_t opname)¶
Set the crypto operations to a jwt_crypto_provider_t type
The same as jwt_set_crypto_ops(), but uses the type as opname
Parameters
Returns
Author¶
Generated automatically by Doxygen for LibJWT from the source code.
| Version 3.2.2 | LibJWT |