Searched refs:opHandle (Results 1 – 1 of 1) sorted by relevance
144 auto opHandle = keymaster.begin(KM_PURPOSE_ENCRYPT, key, params, &outParams); in encryptWithKeymasterKey() local145 if (!opHandle) return false; in encryptWithKeymasterKey()155 if (!opHandle.updateCompletely(message, &body)) return false; in encryptWithKeymasterKey()158 if (!opHandle.finishWithOutput(&mac)) return false; in encryptWithKeymasterKey()170 auto opHandle = keymaster.begin(KM_PURPOSE_DECRYPT, key, params); in decryptWithKeymasterKey() local171 if (!opHandle) return false; in decryptWithKeymasterKey()172 if (!opHandle.updateCompletely(bodyAndMac, message)) return false; in decryptWithKeymasterKey()173 if (!opHandle.finish()) return false; in decryptWithKeymasterKey()