/system/teeui/libteeui/include/teeui/ |
D | generic_operation.h | 67 : error_(ResponseCode::Ignored), formattedMessageLength_(0), in Operation() 71 ResponseCode init(const MsgString& promptText, const MsgVector<uint8_t>& extraData, in init() 74 if (!hmacKey_) return ResponseCode::Unexpected; in init() 75 if (error_ != ResponseCode::Ignored) return ResponseCode::OperationPending; in init() 86 return ResponseCode::UIErrorMessageTooLong; in init() 103 return ResponseCode::UIErrorMessageTooLong; in init() 105 return ResponseCode::UIErrorMalformedUTF8Encoding; in init() 108 return ResponseCode::Unexpected; in init() 112 if (locale.size() >= kMaxLocaleSize) return ResponseCode::UIErrorMessageTooLong; in init() 123 return ResponseCode::SystemError; in init() [all …]
|
D | common_message_types.h | 32 enum class ResponseCode : uint32_t; 42 enum class ResponseCode : uint32_t { enum 109 inline std::tuple<ReadStream, ResponseCode> read(Message<ResponseCode>, ReadStream in) { in read() argument 110 return readSimpleType<ResponseCode>(in); in read() 112 inline WriteStream write(WriteStream out, const ResponseCode& v) { in write()
|
D | generic_messages.h | 55 using PromptUserConfirmationResponse = Message<ResponseCode>; 57 using DeliverTestCommandResponse = Message<ResponseCode>; 59 using ResultMsg = Message<ResponseCode, MsgVector<uint8_t>, MsgVector<uint8_t>>;
|
/system/security/keystore/include/keystore/ |
D | keystore_return_types.h | 45 KeyStoreServiceReturnCode(const ResponseCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreServiceReturnCode() 55 inline KeyStoreServiceReturnCode& operator=(const ResponseCode& errorCode) { 64 return errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR) || in isOk() 69 if (!errorCode_) return static_cast<int32_t>(ResponseCode::NO_ERROR /* 1 */); in getErrorCode() 72 inline bool operator==(const ResponseCode& rhs) const { 73 return (rhs == ResponseCode::NO_ERROR && 79 errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR)) || 82 inline bool operator!=(const ResponseCode& rhs) const { return !(*this == rhs); } 89 inline bool operator==(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) { 95 inline bool operator!=(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) { [all …]
|
D | keystore.h | 30 enum class ResponseCode : int32_t { enum
|
/system/netd/server/ |
D | NdcDispatcher.cpp | 57 (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \ 66 (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \ 73 using netdutils::ResponseCode; 169 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 179 cli->sendMsg(ResponseCode::OperationFailed, "Failed to get interface list", true); in runCommand() 183 cli->sendMsg(ResponseCode::InterfaceListResult, iface.c_str(), false); in runCommand() 186 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); in runCommand() 193 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand() 203 cli->sendMsg(ResponseCode::OperationFailed, "Interface not found", true); in runCommand() 213 cli->sendMsg(ResponseCode::InterfaceGetCfgResult, msg.c_str(), false); in runCommand() [all …]
|
D | MDnsSdListener.cpp | 50 using android::netdutils::ResponseCode; 80 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 93 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 99 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false); in discover() 112 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback() 122 respCode = ResponseCode::ServiceDiscoveryServiceAdded; in MDnsSdListenerDiscoverCallback() 128 respCode = ResponseCode::ServiceDiscoveryServiceRemoved; in MDnsSdListenerDiscoverCallback() 141 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in stop() 149 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false); in stop() 157 cli->sendMsg(ResponseCode::CommandOkay, msg, false); in stop() [all …]
|
/system/security/keystore/ |
D | user_state.cpp | 85 ResponseCode UserState::initialize(const android::String8& pw) { in initialize() 87 return ResponseCode::SYSTEM_ERROR; in initialize() 89 ResponseCode response = writeMasterKey(pw); in initialize() 90 if (response != ResponseCode::NO_ERROR) { in initialize() 94 return ResponseCode::NO_ERROR; in initialize() 97 ResponseCode UserState::copyMasterKey(LockedUserState<UserState>* src) { in copyMasterKey() 99 return ResponseCode::SYSTEM_ERROR; in copyMasterKey() 102 return ResponseCode::SYSTEM_ERROR; in copyMasterKey() 109 ResponseCode UserState::copyMasterKeyFile(LockedUserState<UserState>* src) { in copyMasterKeyFile() 115 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile() [all …]
|
D | blob.cpp | 79 ResponseCode AES_gcm_encrypt(const uint8_t* in, uint8_t* out, size_t len, in AES_gcm_encrypt() 101 return ResponseCode::SYSTEM_ERROR; in AES_gcm_encrypt() 107 return ResponseCode::NO_ERROR; in AES_gcm_encrypt() 115 ResponseCode AES_gcm_decrypt(const uint8_t* in, uint8_t* out, size_t len, in AES_gcm_decrypt() 137 return ResponseCode::VALUE_CORRUPTED; in AES_gcm_decrypt() 143 return ResponseCode::VALUE_CORRUPTED; in AES_gcm_decrypt() 148 return ResponseCode::NO_ERROR; in AES_gcm_decrypt() 309 static ResponseCode writeBlob(const std::string& filename, Blob blob, blobv3* rawBlob, in writeBlob() 319 return ResponseCode::LOCKED; in writeBlob() 325 return ResponseCode::SYSTEM_ERROR; in writeBlob() [all …]
|
D | KeyStore.cpp | 72 ResponseCode KeyStore::initialize() { in initialize() 78 return ResponseCode::NO_ERROR; in initialize() 81 ResponseCode KeyStore::initializeUser(const android::String8& pw, uid_t userId) { in initializeUser() 86 ResponseCode KeyStore::copyMasterKey(uid_t srcUser, uid_t dstUser) { in copyMasterKey() 92 ResponseCode KeyStore::writeMasterKey(const android::String8& pw, uid_t userId) { in writeMasterKey() 97 ResponseCode KeyStore::readMasterKey(const android::String8& pw, uid_t userId) { in readMasterKey() 149 ResponseCode rc; in resetUser() 155 if (rc != ResponseCode::NO_ERROR) { in resetUser() 165 ResponseCode rc; in resetUser() 170 case ResponseCode::SYSTEM_ERROR: in resetUser() [all …]
|
D | key_store_service.cpp | 68 using ConfirmationResponseCode = android::hardware::confirmationui::V1_0::ResponseCode; 89 return {ResponseCode::NO_ERROR, diff_secs < kIdRotationPeriod}; in hadFactoryResetSinceIdRotation() 94 return {ResponseCode::SYSTEM_ERROR, false /* don't care */}; in hadFactoryResetSinceIdRotation() 100 return {ResponseCode::SYSTEM_ERROR, false /* don't care */}; in hadFactoryResetSinceIdRotation() 105 return {ResponseCode::SYSTEM_ERROR, false /* don't care */}; in hadFactoryResetSinceIdRotation() 108 return {ResponseCode::NO_ERROR, true}; in hadFactoryResetSinceIdRotation() 142 return ResponseCode::NO_ERROR; in updateParamsForAttestation() 149 *aidl_return = static_cast<int32_t>(ResponseCode::PERMISSION_DENIED); in getState() 161 static_cast<int32_t>(ResponseCode::PERMISSION_DENIED)); in get() 165 ResponseCode rc; in get() [all …]
|
D | KeyStore.h | 100 ResponseCode initialize(); 104 ResponseCode initializeUser(const android::String8& pw, uid_t userId); 106 ResponseCode copyMasterKey(uid_t srcUser, uid_t dstUser); 107 ResponseCode writeMasterKey(const android::String8& pw, uid_t userId); 108 ResponseCode readMasterKey(const android::String8& pw, uid_t userId); 123 std::tuple<ResponseCode, Blob, Blob> get(const LockedKeyBlobEntry& blobfile); 124 ResponseCode put(const LockedKeyBlobEntry& blobfile, Blob keyBlob, Blob characteristicsBlob); 125 ResponseCode del(const LockedKeyBlobEntry& blobfile); 131 ResponseCode importKey(const uint8_t* key, size_t keyLen, const LockedKeyBlobEntry& blobfile, 136 std::tuple<ResponseCode, Blob, Blob, LockedKeyBlobEntry>
|
D | user_state.h | 61 ResponseCode initialize(const android::String8& pw); 63 ResponseCode copyMasterKey(LockedUserState<UserState>* src); 64 ResponseCode copyMasterKeyFile(LockedUserState<UserState>* src); 65 ResponseCode writeMasterKey(const android::String8& pw); 66 ResponseCode readMasterKey(const android::String8& pw);
|
D | blob.h | 160 ResponseCode readBlob(const std::string& filename, const std::vector<uint8_t>& aes_key, 265 static std::tuple<ResponseCode, std::list<LockedKeyBlobEntry>> 270 ResponseCode writeBlobs(Blob keyBlob, Blob characteristicsBlob, 272 std::tuple<ResponseCode, Blob, Blob> readBlobs(const std::vector<uint8_t>& aes_key, 274 ResponseCode deleteBlobs() const;
|
D | keystore_client_impl.cpp | 188 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in addRandomNumberGeneratorEntropy() 210 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in generateKey() 236 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in getKeyCharacteristics() 265 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in importKey() 290 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in exportKey() 307 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in deleteKey() 314 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in deleteAllKeys() 331 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in beginOperation() 361 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in updateOperation() 396 if (!binder_result.isOk()) return ResponseCode::SYSTEM_ERROR; in finishOperation() [all …]
|
D | keymaster_worker.cpp | 129 ResponseCode rc; in upgradeKeyBlob() 136 if (rc != ResponseCode::NO_ERROR) { in upgradeKeyBlob() 195 rc = ResponseCode::SYSTEM_ERROR; in createKeyCharacteristicsCache() 210 return rc = ResponseCode::SYSTEM_ERROR, result; in createKeyCharacteristicsCache() 234 error = ResponseCode::SYSTEM_ERROR; in createKeyCharacteristicsCache() 316 rc = ResponseCode::NO_ERROR; in getAuthToken() 328 : KeyStoreServiceReturnCode(ResponseCode::OP_AUTH_NEEDED); in getAuthToken() 415 if (!authRc.isOk() && authRc != ResponseCode::OP_AUTH_NEEDED) { in begin() 476 return worker_cb(operationFailed(ResponseCode::SYSTEM_ERROR)); in begin() 489 return worker_cb(operationFailed(ResponseCode::SYSTEM_ERROR)); in begin() [all …]
|
D | confirmation_manager.h | 38 using ConfirmationResponseCode = android::hardware::confirmationui::V1_0::ResponseCode;
|
/system/core/gatekeeperd/include/gatekeeper/ |
D | GateKeeperResponse.h | 27 enum class ResponseCode : int32_t { enum 34 GateKeeperResponse(ResponseCode response_code, int32_t timeout = 0, 47 static GateKeeperResponse error() { return GateKeeperResponse(ResponseCode::ERROR); } in error() 49 return GateKeeperResponse(ResponseCode::RETRY, timeout); in retry() 52 return GateKeeperResponse(ResponseCode::OK, 0, std::move(payload), reenroll); 62 ResponseCode response_code() const { return response_code_; } in response_code() 64 void response_code(ResponseCode response_code) { response_code_ = response_code; } in response_code() 75 ResponseCode response_code_;
|
/system/core/trusty/confirmationui/ |
D | TrustyConfirmationUI.cpp | 71 using TeeuiRc = ::teeui::ResponseCode; 90 ResponseCode convertRc(TeeuiRc trc) { in convertRc() 92 uint32_t(TeeuiRc::OK) == uint32_t(ResponseCode::OK) && in convertRc() 93 uint32_t(TeeuiRc::Canceled) == uint32_t(ResponseCode::Canceled) && in convertRc() 94 uint32_t(TeeuiRc::Aborted) == uint32_t(ResponseCode::Aborted) && in convertRc() 95 uint32_t(TeeuiRc::OperationPending) == uint32_t(ResponseCode::OperationPending) && in convertRc() 96 uint32_t(TeeuiRc::Ignored) == uint32_t(ResponseCode::Ignored) && in convertRc() 97 uint32_t(TeeuiRc::SystemError) == uint32_t(ResponseCode::SystemError) && in convertRc() 98 uint32_t(TeeuiRc::Unimplemented) == uint32_t(ResponseCode::Unimplemented) && in convertRc() 99 uint32_t(TeeuiRc::Unexpected) == uint32_t(ResponseCode::Unexpected) && in convertRc() [all …]
|
D | NotSoSecureInput.cpp | 35 using teeui::ResponseCode; 128 teeui::ResponseCode rc; in handleEvent() 133 if (rc != ResponseCode::OK) { in handleEvent() 143 if (rc != ResponseCode::OK) { in handleEvent() 160 if (rc != ResponseCode::OK) { in start() 167 teeui::ResponseCode performDTUPHandshake() { in performDTUPHandshake() 168 ResponseCode rc; in performDTUPHandshake() 172 if (rc != ResponseCode::OK) { in performDTUPHandshake() 181 if (rc != ResponseCode::OK) { in performDTUPHandshake() 185 return ResponseCode::OK; in performDTUPHandshake()
|
D | TrustyConfirmationUI.h | 54 Return<ResponseCode> promptUserConfirmation(const sp<IConfirmationResultCallback>& resultCB, 59 Return<ResponseCode> deliverSecureInputEvent( 88 ResponseCode prompt_result_; 91 std::tuple<teeui::ResponseCode, teeui::MsgVector<uint8_t>, teeui::MsgVector<uint8_t>>
|
/system/teeui/libteeui/include/secure_input/ |
D | secure_input_device.h | 35 using HsBeginCb = std::function<std::tuple<teeui::ResponseCode, Nonce>()>; 36 using HsFinalizeCb = std::function<teeui::ResponseCode(const Signature&, const Nonce&)>; 38 std::function<std::tuple<teeui::ResponseCode, secure_input::InputResponse>( 40 using InputResultCb = std::function<void(teeui::ResponseCode)>;
|
D | secure_input_proto.h | 65 using InputHandshakeResponse = teeui::Message<teeui::ResponseCode, Nonce>; 74 using FinalizeInputSessionHandshakeResponse = teeui::Message<teeui::ResponseCode>; 83 using DeliverInputEventResponse = teeui::Message<teeui::ResponseCode, InputResponse>;
|
/system/core/gatekeeperd/ |
D | GateKeeperResponse.cpp | 38 response_code_ = ResponseCode(in->readInt32()); in readFromParcel() 39 if (response_code_ == ResponseCode::OK) { in readFromParcel() 52 } else if (response_code_ == ResponseCode::RETRY) { in readFromParcel() 63 if (response_code_ == ResponseCode::OK) { in writeToParcel() 75 } else if (response_code_ == ResponseCode::RETRY) { in writeToParcel()
|
/system/netd/libnetdutils/include/netdutils/ |
D | ResponseCode.h | 23 class ResponseCode {
|