|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
Base64 encoder/decoder. More...
#include "protocore_config.h"Go to the source code of this file.
Base64 encoder/decoder.
Used to encode the SHA-1 digest in the WebSocket handshake response (RFC 6455 ยง4.2.2) and to decode Basic Auth credentials (RFC 7617).
Encode is a portable software codec on every target (fast; it only handles the public WebSocket-accept digest). Decode touches the secret Basic-auth credentials, so on the ESP32 it uses mbedTLS's constant-time decoder (side-channel hardened) and on the native test target the portable software decoder. See base64.cpp and docs/FEATURE_PERFORMANCE.md section 2.
Definition in file base64.h.