| 401 | } |
| 402 | |
| 403 | MMKV_EXPORT void checkReSetCryptKey(void *handle, char *oKey, uint64_t length, bool aes256) { |
| 404 | MMKV *kv = static_cast<MMKV *>(handle); |
| 405 | if (kv) { |
| 406 | if (oKey && length > 0) { |
| 407 | string key(oKey, length); |
| 408 | kv->checkReSetCryptKey(&key, aes256); |
| 409 | } else { |
| 410 | kv->checkReSetCryptKey(nullptr, aes256); |
| 411 | } |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | # endif // MMKV_DISABLE_CRYPT |
| 416 |
nothing calls this directly
no test coverage detected