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,
64 LWS_GENCRYPTO_RSA_KEYEL_OTHER,
65 LWS_GENCRYPTO_RSA_KEYEL_RI,
66 LWS_GENCRYPTO_RSA_KEYEL_DI,
67 LWS_GENCRYPTO_RSA_KEYEL_TI,
69 LWS_GENCRYPTO_RSA_KEYEL_COUNT
72 enum lws_gencrypto_ec_tok {
73 LWS_GENCRYPTO_EC_KEYEL_CRV,
74 LWS_GENCRYPTO_EC_KEYEL_X,
76 LWS_GENCRYPTO_EC_KEYEL_D = LWS_GENCRYPTO_RSA_KEYEL_D,
77 LWS_GENCRYPTO_EC_KEYEL_Y,
79 LWS_GENCRYPTO_EC_KEYEL_COUNT
82 enum lws_gencrypto_aes_tok {
84 LWS_GENCRYPTO_AES_KEYEL_K = LWS_GENCRYPTO_OCT_KEYEL_K,
86 LWS_GENCRYPTO_AES_KEYEL_COUNT
90 #define LWS_GENCRYPTO_MAX_KEYEL_COUNT LWS_GENCRYPTO_RSA_KEYEL_COUNT
113 LWS_VISIBLE LWS_EXTERN
int
114 lws_gencrypto_bits_to_bytes(
int bits);
124 LWS_VISIBLE LWS_EXTERN
int
125 lws_base64_size(
int bytes);
136 LWS_VISIBLE LWS_EXTERN
size_t
137 lws_gencrypto_padded_length(
size_t block_size,
size_t len);
Definition: lws-gencrypto.h:99