Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions proto/manager/auth_device.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ package manager;
* <= AuthDeviceFlowCompletion
*/

/**
* Example of error in authentication
*
* Host Device
* AuthDeviceInitiateRequest =>
* <= AuthDeviceChallengeSigResponse
* ------------------------------------------------
* <= AuthDeviceSerialSigResponse
* AuthDeviceResult =>
* <= AuthDeviceChallengeSigResponse
*/

enum AuthDeviceStatus {
AUTH_DEVICE_STATUS_INIT = 0;
AUTH_DEVICE_STATUS_USER_CONFIRMED = 1;
Expand Down Expand Up @@ -65,6 +77,16 @@ message AuthDeviceRequest {
}
}

enum AuthDeviceErrorType {
AUTH_DEVICE_ERROR_TYPE_NONE = 0;
ATECC_RETRIES_EXCEEDED = 1;
SIGNATURE_VERIFICATION_FAILED = 2;
}

message AuthDeviceErrorResponse {
AuthDeviceErrorType type = 1;
}

message AuthDeviceCompletion {
}

Expand All @@ -73,6 +95,7 @@ message AuthDeviceResponse {
AuthDeviceSerialSigResponse serial_signature = 1;
AuthDeviceChallengeSigResponse challenge_signature = 2;
AuthDeviceCompletion flow_complete = 4;
AuthDeviceErrorResponse error = 5;

error.CommonError common_error = 3;
}
Expand Down