| 929 | } |
| 930 | |
| 931 | MMKV_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 | |
| 943 | MMKV_JNI void doCheckReSetCryptKey(JNIEnv *env, jobject instance, jstring cryptKey, jboolean aes256) { |
| 944 | MMKV *kv = getMMKV(env, instance); |
nothing calls this directly
no test coverage detected