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

Method cryptKey

Core/MMKV.cpp:382–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380#ifndef MMKV_DISABLE_CRYPT
381
382string MMKV::cryptKey() const {
383 SCOPED_LOCK(m_lock);
384
385 if (m_crypter) {
386 char key[AES256_KEY_LEN];
387 m_crypter->getKey(key);
388 return {key, strnlen(key, AES256_KEY_LEN)};
389 }
390 return "";
391}
392
393void MMKV::checkReSetCryptKey(const string *cryptKey, bool aes256) {
394 SCOPED_LOCK(m_lock);

Callers 8

checkReSetCryptKeyMethod · 0.95
reKeyMethod · 0.95
cryptKeyFunction · 0.45
cryptKeyFunction · 0.45
cryptKeyFunction · 0.45
cryptKeyFunction · 0.45
cryptKeyFunction · 0.45
CryptKeyMethod · 0.45

Calls 1

getKeyMethod · 0.80

Tested by

no test coverage detected