X-Git-Url: https://git.saurik.com/apple/securityd.git/blobdiff_plain/f7aa9f666a1c7ab343b4ce8f1677ea253c4e126e..4cd1cad0dea00daa03e1b54fdf2797a02373ad5b:/src/dbcrypto.cpp?ds=inline diff --git a/src/dbcrypto.cpp b/src/dbcrypto.cpp index 98b1caa..83d4469 100644 --- a/src/dbcrypto.cpp +++ b/src/dbcrypto.cpp @@ -135,6 +135,15 @@ void DatabaseCryptoCore::setup(const DbBlob *blob, CssmClient::Key master) mHaveMaster = true; } +bool DatabaseCryptoCore::get_encryption_key(CssmOwnedData &data) +{ + bool result = false; + if (isValid()) { + data = mEncryptionKey->keyData(); + result = true; + } + return result; +} // // Given a putative passphrase, determine whether that passphrase