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

Function toEncryptionMethod

src/Compression/CompressionCodecEncrypted.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32EncryptionMethod toEncryptionMethod(const std::string & name)
33{
34 if (name == "AES_128_GCM_SIV")
35 return AES_128_GCM_SIV;
36 if (name == "AES_256_GCM_SIV")
37 return AES_256_GCM_SIV;
38 throw Exception(ErrorCodes::BAD_ARGUMENTS, "Unknown encryption method. Got {}", name);
39}
40
41namespace
42{

Callers 2

encryptValueMethod · 0.85
decryptValueMethod · 0.85

Calls 1

ExceptionClass · 0.70

Tested by

no test coverage detected