MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / unhexKey

Function unhexKey

src/Compression/CompressionCodecEncrypted.cpp:252–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252String unhexKey(const String & hex)
253{
254 try
255 {
256 return boost::algorithm::unhex(hex);
257 }
258 catch (const std::exception &)
259 {
260 throw Exception(ErrorCodes::BAD_ARGUMENTS, "Cannot read key_hex, check for valid characters [0-9a-fA-F] and length");
261 }
262}
263
264/// Firstly, write a byte, which shows if the nonce will be put in text (if it was defined in config)
265/// Secondly, write nonce in text (this step depends from first step)

Callers 1

loadImplMethod · 0.70

Calls 2

unhexFunction · 0.85
ExceptionClass · 0.70

Tested by

no test coverage detected