| 30 | } |
| 31 | |
| 32 | EncryptionMethod 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 | |
| 41 | namespace |
| 42 | { |
no test coverage detected