Find out key size for each algorithm
| 87 | |
| 88 | /// Find out key size for each algorithm |
| 89 | UInt64 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. |
| 99 | const char * getMethod(EncryptionMethod Method) |
no test coverage detected