/* SHA-1 and base64 for the WebSocket handshake (desktop/port/src/desktop_crypto.c) */ #pragma once #include #include void desktop_sha1(const uint8_t *data, size_t len, uint8_t out[20]); // Writes the NUL-terminated base64 of in; returns the length without the NUL, 0 if out is too small size_t desktop_base64_encode(char *out, size_t cap, const uint8_t *in, size_t n);