Skip to content

Commit

Permalink
Use untagged COSE structures.
Browse files Browse the repository at this point in the history
This is a regression that was introduced in our recent change to coset +
ciborium.
  • Loading branch information
cobward committed Jan 8, 2025
1 parent 5e8e541 commit 7b8b9df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/issuance/mdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl Mdoc {
let builder = coset::CoseSign1Builder::new()
.protected(protected)
.payload(mso_bytes);
let prepared_sig = PreparedCoseSign1::new(builder, None, None, true)?;
let prepared_sig = PreparedCoseSign1::new(builder, None, None, false)?;

let preparation_mdoc = PreparedMdoc {
doc_type,
Expand Down
4 changes: 2 additions & 2 deletions src/presentation/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ pub trait DeviceSession {
cose_sign1_builder,
Some(&device_auth_bytes),
None,
true,
false,
) {
Ok(prepared) => prepared,
Err(_e) => {
Expand All @@ -916,7 +916,7 @@ pub trait DeviceSession {
cose_mac0_builder,
Some(&device_auth_bytes),
None,
true,
false,
) {
Ok(prepared) => prepared,
Err(_e) => {
Expand Down

0 comments on commit 7b8b9df

Please sign in to comment.