MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / createClientKey

Method createClientKey

Libraries/Http/HttpWebSocket.cpp:379–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379Result HttpWebSocketHandshake::createClientKey(Span<const uint8_t> nonce, Span<char> storage, StringSpan& key)
380{
381 SC_TRY_MSG(nonce.sizeInBytes() == NonceLength, "HttpWebSocketHandshake nonce must be 16 bytes");
382 return scHttpWebSocketBase64Encode(nonce, storage, key);
383}
384
385Result HttpWebSocketHandshake::validateClientKey(StringSpan key)
386{

Callers

nothing calls this directly

Calls 2

sizeInBytesMethod · 0.45

Tested by

no test coverage detected