Lines Matching refs:opHandle
174 auto opHandle = keymaster.begin(purpose, kmKey, inParams, outParams); in begin() local
175 if (opHandle) { in begin()
176 return opHandle; in begin()
178 if (opHandle.errorCode() != ErrorCode::KEY_REQUIRES_UPGRADE) return opHandle; in begin()
201 auto opHandle = begin(keymaster, dir, KeyPurpose::ENCRYPT, keyParams, opParams, &outParams); in encryptWithKeymasterKey() local
202 if (!opHandle) return false; in encryptWithKeymasterKey()
212 if (!opHandle.updateCompletely(message, &body)) return false; in encryptWithKeymasterKey()
215 if (!opHandle.finish(&mac)) return false; in encryptWithKeymasterKey()
228 auto opHandle = begin(keymaster, dir, KeyPurpose::DECRYPT, keyParams, opParams, nullptr); in decryptWithKeymasterKey() local
229 if (!opHandle) return false; in decryptWithKeymasterKey()
230 if (!opHandle.updateCompletely(bodyAndMac, message)) return false; in decryptWithKeymasterKey()
231 if (!opHandle.finish(nullptr)) return false; in decryptWithKeymasterKey()