|
Rhonabwy
Javascript Object Signing and Encryption (JOSE) library - JWK, JWKS, JWS, JWE and JWT
|
Functions | |
| int | r_jwk_import_from_json_str (jwk_t *jwk, const char *input) |
| int | r_jwk_import_from_json_t (jwk_t *jwk, json_t *j_input) |
| int | r_jwk_import_from_pem_der (jwk_t *jwk, int type, int format, const unsigned char *input, size_t input_len) |
| int | r_jwk_import_from_gnutls_privkey (jwk_t *jwk, gnutls_privkey_t key) |
| int | r_jwk_import_from_gnutls_pubkey (jwk_t *jwk, gnutls_pubkey_t pub) |
| int | r_jwk_import_from_gnutls_x509_crt (jwk_t *jwk, gnutls_x509_crt_t crt) |
| int | r_jwk_import_from_x5u (jwk_t *jwk, int x5u_flags, const char *x5u) |
| int | r_jwk_import_from_x5c (jwk_t *jwk, const char *x5c) |
| int | r_jwk_import_from_symmetric_key (jwk_t *jwk, const unsigned char *key, size_t key_len) |
| int | r_jwk_import_from_password (jwk_t *jwk, const char *password) |
| int | r_jwk_extract_pubkey (jwk_t *jwk_privkey, jwk_t *jwk_pubkey, int x5u_flags) |
| jwk_t * | r_jwk_quick_import (rhn_import type,...) |
| jwk_t * | r_jwk_copy (jwk_t *jwk) |
| int | r_jwk_equal (jwk_t *jwk1, jwk_t *jwk2) |
Import a jwk from JSON data, gnutls inner types or PEM/DER
Return a copy of the JWK
| jwk | the jwk to copy |
Compare 2 jwk
| jwk1 | the first JWK to compare |
| jwk2 | the second JWK to compare |
Extract the public key from the private key jwk_privkey and set it into jwk_pubkey
| jwk_privkey | the jwt containing a private key |
| jwk_pubkey | the jwt that will be set with the public key data |
| x5u_flags | Flags to retrieve x5u certificates pointed by x5u if necessary, could be 0 if not needed Flags available are
|
| int r_jwk_import_from_gnutls_privkey | ( | jwk_t * | jwk, |
| gnutls_privkey_t | key ) |
| int r_jwk_import_from_gnutls_pubkey | ( | jwk_t * | jwk, |
| gnutls_pubkey_t | pub ) |
| int r_jwk_import_from_gnutls_x509_crt | ( | jwk_t * | jwk, |
| gnutls_x509_crt_t | crt ) |
| int r_jwk_import_from_json_str | ( | jwk_t * | jwk, |
| const char * | input ) |
| int r_jwk_import_from_json_t | ( | jwk_t * | jwk, |
| json_t * | j_input ) |
| int r_jwk_import_from_password | ( | jwk_t * | jwk, |
| const char * | password ) |
Import a password into a jwk The password will be converted to base64url format
| jwk | the jwk_t * to import to |
| password | the password to import |
| int r_jwk_import_from_pem_der | ( | jwk_t * | jwk, |
| int | type, | ||
| int | format, | ||
| const unsigned char * | input, | ||
| size_t | input_len ) |
Import a public or private key or a X509 certificate in PEM or DER format into a jwk_t
| jwk | the jwk_t * to import to |
| JWK, JWKS, JWS, JWE type | the type of the input, values available are R_X509_TYPE_PUBKEY, R_X509_TYPE_PRIVKEY or R_X509_TYPE_CERTIFICATE |
| format | the format of the input, values available are R_FORMAT_PEM or R_FORMAT_DER |
| input | the input value, must contain the key or the certificate in PEM or DER format |
| input_len | the length of the data contained in input If jwk is set, values will be overwritten |
| int r_jwk_import_from_symmetric_key | ( | jwk_t * | jwk, |
| const unsigned char * | key, | ||
| size_t | key_len ) |
Import a symmetric key into a jwk The key will be converted to base64url format
| jwk | the jwk_t * to import to |
| key | the key to import |
| key_len | the size of the key |
| int r_jwk_import_from_x5c | ( | jwk_t * | jwk, |
| const char * | x5c ) |
Import a key from an x5c value
| jwk | the jwk_t * to import to |
| x5c | the x5c value If jwk is set, values will be overwritten |
| int r_jwk_import_from_x5u | ( | jwk_t * | jwk, |
| int | x5u_flags, | ||
| const char * | x5u ) |
Import a certificate from an URL
| jwk | the jwk_t * to import to |
| x5u_flags | Flags to retrieve x5u certificates Flags available are
|
| x5u | the url to retreive the certificate If jwk is set, values will be overwritten |
| jwk_t * r_jwk_quick_import | ( | rhn_import | type, |
| ... ) |
Import data into a jwk
| JWK, JWKS, JWS, JWE type | type of the data to import Following parameters must be set of values with the mandatory parameters for each rhn_import See rhn_import documentation |