Skip to content

Commit

Permalink
Adding tests (and some minor fixes the tests revealed)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Sirringhaus committed Feb 12, 2024
1 parent 98b6c13 commit 30a9f76
Show file tree
Hide file tree
Showing 4 changed files with 438 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/ctap2_discoverable_creds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fn extract_associated_large_blobs(key: Vec<u8>, array: Vec<LargeBlobArrayElement
let plaintext = cipher.decrypt(e.nonce.as_slice().into(), payload).ok();
plaintext
})
.map(|d| flate3::inflate(&d))
.map(|d| flate3::inflate(&d)) // TODO: Check resulting length and compare to orig_size
.map(|d| String::from_utf8_lossy(&d).to_string())
.collect();
valid_elements
Expand Down
Loading

0 comments on commit 30a9f76

Please sign in to comment.