You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
832 B

  1. #![cfg_attr(not(feature = "std"), no_std)]
  2. #![deny(
  3. warnings,
  4. unused,
  5. future_incompatible,
  6. nonstandard_style,
  7. rust_2018_idioms
  8. )]
  9. #![forbid(unsafe_code)]
  10. //! This library implements the secp384r1 curve.
  11. //! Source: <https://neuromancer.sk/std/nist/P-384>
  12. //!
  13. //! Curve information:
  14. //! * Base field: q =
  15. //! 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff
  16. //! * Scalar field: r =
  17. //! 0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973
  18. //! * a = -3
  19. //! * b = 0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef
  20. //! * Curve equation: y^2 = x^3 + ax + b
  21. #[cfg(feature = "r1cs")]
  22. pub mod constraints;
  23. mod curves;
  24. mod fields;
  25. pub use curves::*;
  26. pub use fields::*;