Rhonabwy
Javascript Object Signing and Encryption (JOSE) library - JWK, JWKS, JWS, JWE and JWT
|
#include <string.h>
#include <ctype.h>
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
#include <gnutls/abstract.h>
#include <gnutls/x509.h>
#include <orcania.h>
#include <yder.h>
#include <rhonabwy.h>
Functions | |
int | r_jws_init (jws_t **jws) |
void | r_jws_free (jws_t *jws) |
jws_t * | r_jws_copy (jws_t *jws) |
int | r_jws_set_payload (jws_t *jws, const unsigned char *payload, size_t payload_len) |
const unsigned char * | r_jws_get_payload (jws_t *jws, size_t *payload_len) |
int | r_jws_set_alg (jws_t *jws, jwa_alg alg) |
jwa_alg | r_jws_get_alg (jws_t *jws) |
const char * | r_jws_get_kid (jws_t *jws) |
int | r_jws_set_header_str_value (jws_t *jws, const char *key, const char *str_value) |
int | r_jws_set_header_int_value (jws_t *jws, const char *key, rhn_int_t i_value) |
int | r_jws_set_header_json_t_value (jws_t *jws, const char *key, json_t *j_value) |
const char * | r_jws_get_header_str_value (jws_t *jws, const char *key) |
rhn_int_t | r_jws_get_header_int_value (jws_t *jws, const char *key) |
json_t * | r_jws_get_header_json_t_value (jws_t *jws, const char *key) |
json_t * | r_jws_get_full_header_json_t (jws_t *jws) |
char * | r_jws_get_full_header_str (jws_t *jws) |
int | r_jws_add_keys (jws_t *jws, jwk_t *jwk_privkey, jwk_t *jwk_pubkey) |
int | r_jws_add_jwks (jws_t *jws, jwks_t *jwks_privkey, jwks_t *jwks_pubkey) |
int | r_jws_add_keys_json_str (jws_t *jws, const char *privkey, const char *pubkey) |
int | r_jws_add_keys_json_t (jws_t *jws, json_t *privkey, json_t *pubkey) |
int | r_jws_add_keys_pem_der (jws_t *jws, int format, const unsigned char *privkey, size_t privkey_len, const unsigned char *pubkey, size_t pubkey_len) |
int | r_jws_add_keys_gnutls (jws_t *jws, gnutls_privkey_t privkey, gnutls_pubkey_t pubkey) |
int | r_jws_add_key_symmetric (jws_t *jws, const unsigned char *key, size_t key_len) |
jwks_t * | r_jws_get_jwks_privkey (jws_t *jws) |
jwks_t * | r_jws_get_jwks_pubkey (jws_t *jws) |
int | r_jws_parse (jws_t *jws, const char *jws_str, int x5u_flags) |
int | r_jws_parsen (jws_t *jws, const char *jws_str, size_t jws_str_len, int x5u_flags) |
int | r_jws_parse_unsecure (jws_t *jws, const char *jws_str, int x5u_flags) |
int | r_jws_parsen_unsecure (jws_t *jws, const char *jws_str, size_t jws_str_len, int x5u_flags) |
int | r_jws_advanced_parse (jws_t *jws, const char *jws_str, uint32_t parse_flags, int x5u_flags) |
int | r_jws_advanced_parsen (jws_t *jws, const char *jws_str, size_t jws_str_len, uint32_t parse_flags, int x5u_flags) |
int | r_jws_compact_parsen (jws_t *jws, const char *jws_str, size_t jws_str_len, int x5u_flags) |
int | r_jws_compact_parse (jws_t *jws, const char *jws_str, int x5u_flags) |
int | r_jws_compact_parsen_unsecure (jws_t *jws, const char *jws_str, size_t jws_str_len, int x5u_flags) |
int | r_jws_compact_parse_unsecure (jws_t *jws, const char *jws_str, int x5u_flags) |
int | r_jws_advanced_compact_parse (jws_t *jws, const char *jws_str, uint32_t parse_flags, int x5u_flags) |
int | r_jws_advanced_compact_parsen (jws_t *jws, const char *jws_str, size_t jws_str_len, uint32_t parse_flags, int x5u_flags) |
int | r_jws_parse_json_t (jws_t *jws, json_t *jws_json, int x5u_flags) |
int | r_jws_parsen_json_str (jws_t *jws, const char *jws_json_str, size_t jws_str_len, int x5u_flags) |
int | r_jws_parse_json_str (jws_t *jws, const char *jws_json_str, int x5u_flags) |
int | r_jws_advanced_parse_json_str (jws_t *jws, const char *jws_json_str, uint32_t parse_flags, int x5u_flags) |
int | r_jws_advanced_parsen_json_str (jws_t *jws, const char *jws_json_str, size_t jws_json_str_len, uint32_t parse_flags, int x5u_flags) |
int | r_jws_advanced_parse_json_t (jws_t *jws, json_t *jws_json, uint32_t parse_flags, int x5u_flags) |
jws_t * | r_jws_quick_parse (const char *jws_str, uint32_t parse_flags, int x5u_flags) |
jws_t * | r_jws_quick_parsen (const char *jws_str, size_t jws_str_len, uint32_t parse_flags, int x5u_flags) |
int | r_jws_verify_signature (jws_t *jws, jwk_t *jwk_pubkey, int x5u_flags) |
char * | r_jws_serialize (jws_t *jws, jwk_t *jwk_privkey, int x5u_flags) |
char * | r_jws_serialize_unsecure (jws_t *jws, jwk_t *jwk_privkey, int x5u_flags) |
char * | r_jws_serialize_json_str (jws_t *jws, jwks_t *jwks_privkey, int x5u_flags, int mode) |
json_t * | r_jws_serialize_json_t (jws_t *jws, jwks_t *jwks_privkey, int x5u_flags, int mode) |
int | r_jws_set_full_header_json_t (jws_t *jws, json_t *j_header) |
int | r_jws_set_full_header_json_str (jws_t *jws, const char *str_header) |
int | r_jws_set_properties (jws_t *jws,...) |