cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
ws_utils.h
Go to the documentation of this file.
1
#ifndef __CWIST_WS_UTILS_H__
2
#define __CWIST_WS_UTILS_H__
3
9
#include <stddef.h>
10
#include <stdint.h>
11
18
void
sha1
(
const
uint8_t
*data,
size_t
len,
uint8_t
*
hash
);
26
char
*
base64_encode
(
const
uint8_t
*data,
size_t
input_length
,
size_t
*
output_length
);
27
28
#endif
cap
size_t cap
Definition
otel.c:56
base64_encode
char * base64_encode(const uint8_t *data, size_t input_length, size_t *output_length)
Base64-encode a byte buffer for handshake header generation.
Definition
ws_utils.c:258
sha1
void sha1(const uint8_t *data, size_t len, uint8_t *hash)
Compute the SHA-1 digest for a byte range.
Definition
ws_utils.c:235
src
net
websocket
ws_utils.h
Generated by
1.9.8