MCPcopy Create free account
hub / github.com/Tencent/MMKV / reKey

Function reKey

flutter/mmkv_linux/linux/flutter-bridge.cpp:374–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372# ifndef MMKV_DISABLE_CRYPT
373
374MMKV_EXPORT bool reKey(void *handle, char *oKey, uint64_t length, bool aes256) {
375 MMKV *kv = static_cast<MMKV *>(handle);
376 if (kv) {
377 if (oKey && length > 0) {
378 string key(oKey, length);
379 return kv->reKey(key, aes256);
380 } else {
381 return kv->reKey(string(), aes256);
382 }
383 }
384 return false;
385}
386
387MMKV_EXPORT void *cryptKey(void *handle, uint64_t *lengthPtr) {
388 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

reKeyMethod · 0.45

Tested by

no test coverage detected