Skip to content

Commit 28c645b

Browse files
committed
cleaned up the docs for ml-dsa
1 parent b3d0299 commit 28c645b

4 files changed

Lines changed: 5 additions & 1 deletion

File tree

crypto/mldsa/src/hash_mldsa.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ use bouncycastle_rng::HashDRBG_SHA512;
9292
use bouncycastle_sha2::{SHA256, SHA512};
9393

9494
// Imports needed only for docs
95+
#[allow(unused_imports)]
9596
use crate::mldsa::MuBuilder;
9697

9798
const SHA256_OID: &[u8] = &[0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01];

crypto/mldsa/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
#![feature(unsized_const_params)]
112112

113113
// imports needed just for docs
114+
#[allow(unused_imports)]
114115
use bouncycastle_core_interface::traits::{KeyMaterial, Signature, PHSignature};
115116

116117
pub mod mldsa; // todo -- pub just to get the docs. Is that right? Or should I suck the docs up here?

crypto/mldsa/src/mldsa.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ use bouncycastle_sha3::{SHAKE128, SHAKE256};
325325

326326

327327
// imports needed just for docs
328+
#[allow(unused_imports)]
328329
use bouncycastle_core_interface::traits::PHSignature;
330+
#[allow(unused_imports)]
329331
use crate::hash_mldsa;
330332

331333
/*** Constants ***/

crypto/mldsa/src/mldsa_keys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use crate::{ML_DSA_44_NAME, ML_DSA_65_NAME, ML_DSA_87_NAME};
88
use crate::mldsa::{MLDSA44_ETA, MLDSA44_PK_LEN, MLDSA44_SK_LEN, MLDSA44_k, MLDSA44_l};
99
use crate::mldsa::{MLDSA65_ETA, MLDSA65_PK_LEN, MLDSA65_SK_LEN, MLDSA65_k, MLDSA65_l};
1010
use crate::mldsa::{MLDSA87_ETA, MLDSA87_PK_LEN, MLDSA87_SK_LEN, MLDSA87_k, MLDSA87_l};
11-
use crate::mldsa::{POLY_T0PACKED_LEN, POLY_T1PACKED_LEN};
1211
use crate::mldsa::{POLY_T0PACKED_LEN, POLY_T1PACKED_LEN, SEED_LEN};
1312
use bouncycastle_core_interface::errors::SignatureError;
1413
use bouncycastle_core_interface::key_material::KeyMaterialSized;
@@ -17,6 +16,7 @@ use std::fmt;
1716
use std::fmt::{Display, Formatter};
1817

1918
// imports just for docs
19+
#[allow(unused_imports)]
2020
use crate::mldsa::MLDSATrait;
2121

2222

0 commit comments

Comments
 (0)