| 1291 | } |
| 1292 | |
| 1293 | Error GDRESettings::set_encryption_key(Vector<uint8_t> key) { |
| 1294 | if (key.size() != 32) { |
| 1295 | return ERR_INVALID_PARAMETER; |
| 1296 | } |
| 1297 | enc_key = key; |
| 1298 | if (is_pack_loaded()) { |
| 1299 | load_encryption_key(); |
| 1300 | } |
| 1301 | return OK; |
| 1302 | } |
| 1303 | |
| 1304 | Error GDRESettings::set_encryption_key_string(const String &key_str) { |
| 1305 | String skey = key_str.replace_first("0x", ""); |
no test coverage detected