File: fix-tests.patch

package info (click to toggle)
rust-p384 0.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,596 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 508 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: p384/src/arithmetic/hash2curve.rs
===================================================================
--- p384.orig/src/arithmetic/hash2curve.rs
+++ p384/src/arithmetic/hash2curve.rs
@@ -99,8 +99,9 @@ impl FromOkm for Scalar {
 }
 
 #[cfg(test)]
+#[cfg(feature = "sha2")]
 mod tests {
-    use crate::{FieldElement, NistP384, Scalar};
+    use crate::{arithmetic::FieldElement, NistP384, Scalar};
     use elliptic_curve::{
         bigint::{ArrayEncoding, NonZero, U384, U576},
         consts::U72,