Skip to content

Commit

Permalink
feat: add unencrypted_cbor to tamper message and make oneof (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah authored Jan 15, 2025
1 parent 5b63a1f commit 9bb9995
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion messages/sec.options
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
orb.mcu.sec.SERequest.data max_size: 512
orb.mcu.sec.SEResponse.data max_size: 512
orb.mcu.sec.Tamper.unencrypted_json max_size: 640
orb.mcu.sec.Tamper.unencrypted_cbor max_size: 512
14 changes: 8 additions & 6 deletions messages/sec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ message SEResponse
bytes data = 3;
}

/// Contains tamper information serialized in a self-describing format. It is
/// "opaque" because the schema of the tamper message is not known by orb-messages.
/// Inspecting the tamper message is instead done at runtime by other software.
message Tamper {
/// Contains tamper information serialized as json. It is "opaque" because
/// the schema of the json is not known by orb-messages. Inspecting the
/// json is instead done at run time by other software.
// NOTE: in proto3, all fields are implicitly optional. But we mark it
// explicitly here just to be extra clear.
optional string unencrypted_json = 1;
oneof payload {
/// Note: these are *not* minified, they are still using string based
/// identifiers for fields.
bytes unencrypted_cbor = 1;
}
}

0 comments on commit 9bb9995

Please sign in to comment.