We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e42b8 commit 479eef8Copy full SHA for 479eef8
src/test.rs
@@ -443,6 +443,21 @@ fn test_compare_reference_impl() {
443
}
444
445
446
+#[test]
447
+fn test_compare_reference_impl_long_xof() {
448
+ let mut reference_output = [0u8; 32 * BLOCK_LEN - 1];
449
+ let mut reference_hasher = reference_impl::Hasher::new_keyed(&TEST_KEY);
450
+ reference_hasher.update(b"hello world");
451
+ reference_hasher.finalize(&mut reference_output);
452
+
453
+ let mut test_output = [0u8; 32 * BLOCK_LEN - 1];
454
+ let mut test_hasher = crate::Hasher::new_keyed(&TEST_KEY);
455
+ test_hasher.update(b"hello world");
456
+ test_hasher.finalize_xof().fill(&mut test_output);
457
458
+ assert_eq!(reference_output, test_output);
459
+}
460
461
#[test]
462
fn test_xof_partial_blocks() {
463
const OUT_LEN: usize = 6 * BLOCK_LEN;
0 commit comments