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

Function methodKeySize

src/Compression/CompressionCodecEncrypted.cpp:89–96  ·  view source on GitHub ↗

Find out key size for each algorithm

Source from the content-addressed store, hash-verified

87
88/// Find out key size for each algorithm
89UInt64 methodKeySize(EncryptionMethod Method)
90{
91 if (Method == AES_128_GCM_SIV)
92 return 16;
93 if (Method == AES_256_GCM_SIV)
94 return 32;
95 throw Exception(ErrorCodes::BAD_ARGUMENTS, "Unknown encryption method. Got {}", getMethodName(Method));
96}
97
98/// Get encryption/decryption algorithms.
99const char * getMethod(EncryptionMethod Method)

Callers 1

loadImplMethod · 0.85

Calls 2

getMethodNameFunction · 0.85
ExceptionClass · 0.70

Tested by

no test coverage detected