Skip to content

Commit a160473

Browse files
committed
Debug finalize state
1 parent 976c4f5 commit a160473

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

poly1305/src/backend/avx2.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ use crate::{Block, Key, Tag};
2323
mod helpers;
2424
use self::helpers::*;
2525

26-
#[derive(Copy, Clone)]
26+
#[derive(Copy, Clone, Debug)]
2727
struct Initialized {
2828
p: Aligned4x130,
2929
m: SpacedMultiplier4x130,
3030
r4: PrecomputedMultiplier,
3131
}
3232

33-
#[derive(Copy, Clone)]
33+
#[derive(Copy, Clone, Debug)]
3434
pub(crate) struct State {
3535
k: AdditionKey,
3636
r1: PrecomputedMultiplier,
@@ -104,6 +104,7 @@ impl State {
104104
/// Finalize output producing a [`Tag`]
105105
#[target_feature(enable = "avx2")]
106106
pub(crate) unsafe fn finalize(&mut self) -> Tag {
107+
dbg!(&self);
107108
assert!(self.num_cached_blocks < 4);
108109
let mut data = &self.cached_blocks[..];
109110

poly1305/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
//! [audit]: https://research.nccgroup.com/2020/02/26/public-report-rustcrypto-aes-gcm-and-chacha20poly1305-implementation-review/
5656
//! [MobileCoin]: https://mobilecoin.com
5757
58-
#![no_std]
58+
//#![no_std]
5959
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo_small.png")]
6060
#![warn(missing_docs, rust_2018_idioms)]
6161

0 commit comments

Comments
 (0)