Home
last modified time | relevance | path

Searched refs:ENCODED_KEY_LEN (Results 1 - 4 of 4) sorted by relevance

/arkcompiler/toolchain/websocket/
H A Dhandshake_helper.h34 static constexpr size_t ENCODED_KEY_LEN = GetBase64EncodingLength(SHA_DIGEST_LENGTH); member in OHOS::ArkCompiler::Toolchain::WebSocketKeyEncoder
36 static bool EncodeKey(std::string_view key, unsigned char (&destination)[ENCODED_KEY_LEN + 1]);
37 static bool EncodeKey(const unsigned char(&key)[KEY_LENGTH + 1], unsigned char (&destination)[ENCODED_KEY_LEN + 1]);
41 unsigned char (&destination)[ENCODED_KEY_LEN + 1]);
73 index += WebSocketKeyEncoder::ENCODED_KEY_LEN; in ProtocolUpgradeBuilder()
79 const unsigned char (&encodedKey)[WebSocketKeyEncoder::ENCODED_KEY_LEN + 1]) in ProtocolUpgradeBuilder()
85 constexpr void SetKey(const unsigned char (&encodedKey)[WebSocketKeyEncoder::ENCODED_KEY_LEN + 1]) in SetKey()
111 + WebSocketKeyEncoder::ENCODED_KEY_LEN
H A Dhandshake_helper.cpp21 bool WebSocketKeyEncoder::EncodeKey(std::string_view key, unsigned char (&destination)[ENCODED_KEY_LEN + 1]) in EncodeKey()
32 unsigned char (&destination)[ENCODED_KEY_LEN + 1]) in EncodeKey()
44 unsigned char (&destination)[ENCODED_KEY_LEN + 1]) in EncodeKey()
52 if (encodedBytes != ENCODED_KEY_LEN) { in EncodeKey()
/arkcompiler/toolchain/websocket/client/
H A Dwebsocket_client.cpp53 unsigned char expectedSecWebSocketAccept[WebSocketKeyEncoder::ENCODED_KEY_LEN + 1]; in ValidateServerHandShake()
60 if (response.secWebSocketAccept.size() != WebSocketKeyEncoder::ENCODED_KEY_LEN || in ValidateServerHandShake()
/arkcompiler/toolchain/websocket/server/
H A Dwebsocket_server.cpp84 unsigned char encodedKey[WebSocketKeyEncoder::ENCODED_KEY_LEN + 1]; in ProtocolUpgrade()

Completed in 3 milliseconds