pick #40726 to branch-2.1
This commit is contained in:
@ -244,8 +244,9 @@ struct EncryptionAndDecryptTwoImpl {
|
||||
if (mode_arg.size != 0) {
|
||||
if (!aes_mode_map.contains(mode_str)) {
|
||||
all_insert_null = true;
|
||||
} else {
|
||||
encryption_mode = aes_mode_map.at(mode_str);
|
||||
}
|
||||
encryption_mode = aes_mode_map.at(mode_str);
|
||||
}
|
||||
const ColumnString::Offsets* offsets_column = &column->get_offsets();
|
||||
const ColumnString::Chars* chars_column = &column->get_chars();
|
||||
@ -371,13 +372,15 @@ struct EncryptionAndDecryptMultiImpl {
|
||||
if constexpr (is_sm_mode) {
|
||||
if (sm4_mode_map.count(mode_str) == 0) {
|
||||
all_insert_null = true;
|
||||
} else {
|
||||
encryption_mode = sm4_mode_map.at(mode_str);
|
||||
}
|
||||
encryption_mode = sm4_mode_map.at(mode_str);
|
||||
} else {
|
||||
if (aes_mode_map.count(mode_str) == 0) {
|
||||
all_insert_null = true;
|
||||
} else {
|
||||
encryption_mode = aes_mode_map.at(mode_str);
|
||||
}
|
||||
encryption_mode = aes_mode_map.at(mode_str);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user