31 enum lws_gencrypto_kty {
32 LWS_GENCRYPTO_KTY_UNKNOWN,
34 LWS_GENCRYPTO_KTY_OCT,
35 LWS_GENCRYPTO_KTY_RSA,
46 enum lws_gencrypto_oct_tok {
47 LWS_GENCRYPTO_OCT_KEYEL_K,
49 LWS_GENCRYPTO_OCT_KEYEL_COUNT
52 enum lws_gencrypto_rsa_tok {
53 LWS_GENCRYPTO_RSA_KEYEL_E,
54 LWS_GENCRYPTO_RSA_KEYEL_N,
55 LWS_GENCRYPTO_RSA_KEYEL_D,
56 LWS_GENCRYPTO_RSA_KEYEL_P,
57 LWS_GENCRYPTO_RSA_KEYEL_Q,
58 LWS_GENCRYPTO_RSA_KEYEL_DP,
59 LWS_GENCRYPTO_RSA_KEYEL_DQ,
60 LWS_GENCRYPTO_RSA_KEYEL_QI,
62 LWS_GENCRYPTO_RSA_KEYEL_COUNT
65 enum lws_gencrypto_ec_tok {
66 LWS_GENCRYPTO_EC_KEYEL_CRV,
67 LWS_GENCRYPTO_EC_KEYEL_X,
69 LWS_GENCRYPTO_EC_KEYEL_D = LWS_GENCRYPTO_RSA_KEYEL_D,
70 LWS_GENCRYPTO_EC_KEYEL_Y,
72 LWS_GENCRYPTO_EC_KEYEL_COUNT
75 enum lws_gencrypto_aes_tok {
77 LWS_GENCRYPTO_AES_KEYEL_K = LWS_GENCRYPTO_OCT_KEYEL_K,
79 LWS_GENCRYPTO_AES_KEYEL_COUNT
83 #define LWS_GENCRYPTO_MAX_KEYEL_COUNT LWS_GENCRYPTO_RSA_KEYEL_COUNT
106 LWS_VISIBLE LWS_EXTERN
int
107 lws_gencrypto_bits_to_bytes(
int bits);
117 LWS_VISIBLE LWS_EXTERN
int
118 lws_base64_size(
int bytes);
129 LWS_VISIBLE LWS_EXTERN
size_t
130 lws_gencrypto_padded_length(
size_t block_size,
size_t len);
Definition: lws-gencrypto.h:92