Skip to content

Commit 2ce536e

Browse files
Martin Sirringhausmsirringhaus
Martin Sirringhaus
authored andcommitted
Adding tests (and some minor fixes the tests revealed)
1 parent fbdb685 commit 2ce536e

File tree

4 files changed

+438
-10
lines changed

4 files changed

+438
-10
lines changed

examples/ctap2_discoverable_creds.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ fn extract_associated_large_blobs(key: Vec<u8>, array: Vec<LargeBlobArrayElement
269269
let plaintext = cipher.decrypt(e.nonce.as_slice().into(), payload).ok();
270270
plaintext
271271
})
272-
.map(|d| flate3::inflate(&d))
272+
.map(|d| flate3::inflate(&d)) // TODO: Check resulting length and compare to orig_size
273273
.map(|d| String::from_utf8_lossy(&d).to_string())
274274
.collect();
275275
valid_elements

0 commit comments

Comments
 (0)