MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / set_encryption_key

Method set_encryption_key

utility/gdre_settings.cpp:1293–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1291}
1292
1293Error 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
1304Error GDRESettings::set_encryption_key_string(const String &key_str) {
1305 String skey = key_str.replace_first("0x", "");

Callers 2

_pck_select_requestMethod · 0.80
_pck_create_requestMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected