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

Function doReKey

Android/MMKV/mmkv/src/main/cpp/native-bridge.cpp:931–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931MMKV_JNI jboolean doReKey(JNIEnv *env, jobject instance, jstring cryptKey, jboolean aes256) {
932 MMKV *kv = getMMKV(env, instance);
933 if (kv) {
934 string newKey;
935 if (cryptKey) {
936 newKey = jstring2string(env, cryptKey);
937 }
938 return (jboolean) kv->reKey(newKey, aes256);
939 }
940 return (jboolean) false;
941}
942
943MMKV_JNI void doCheckReSetCryptKey(JNIEnv *env, jobject instance, jstring cryptKey, jboolean aes256) {
944 MMKV *kv = getMMKV(env, instance);

Callers

nothing calls this directly

Calls 3

getMMKVFunction · 0.85
jstring2stringFunction · 0.70
reKeyMethod · 0.45

Tested by

no test coverage detected