mirror of
https://github.com/saymrwulf/betrusted-curve25519-dalek-source.git
synced 2026-09-04 20:24:07 +00:00
Fixed docs build (#475)
Also sets code font size in docs back to normal (no longer small)
This commit is contained in:
parent
174611895b
commit
1cedb3727e
8 changed files with 17 additions and 5 deletions
7
Makefile
7
Makefile
|
|
@ -1,8 +1,7 @@
|
|||
FEATURES := simd_backend serde rand_core digest
|
||||
FEATURES := serde rand_core digest
|
||||
|
||||
doc:
|
||||
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --cfg docsrs
|
||||
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --cfg docsrs --cfg=curve25519_dalek_backend=\"simd\"
|
||||
|
||||
doc-internal:
|
||||
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --document-private-items --cfg docsrs
|
||||
|
||||
cargo +nightly rustdoc --features "$(FEATURES)" -- --html-in-header docs/assets/rustdoc-include-katex-header.html --document-private-items --cfg docsrs --cfg=curve25519_dalek_backend=\"simd\"
|
||||
|
|
|
|||
|
|
@ -9,5 +9,4 @@
|
|||
|
||||
<style>
|
||||
.katex { font-size: 1em !important; }
|
||||
pre.rust, .docblock code, .docblock-short code { font-size: 0.85em !important; }
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -177,8 +177,11 @@ impl ConditionallySelectable for FieldElement2625 {
|
|||
}
|
||||
|
||||
impl FieldElement2625 {
|
||||
/// The scalar \\( 0 \\).
|
||||
pub const ZERO: FieldElement2625 = FieldElement2625([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
||||
/// The scalar \\( 1 \\).
|
||||
pub const ONE: FieldElement2625 = FieldElement2625([1, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
||||
/// The scalar \\( -1 \\).
|
||||
pub const MINUS_ONE: FieldElement2625 = FieldElement2625([
|
||||
0x3ffffec, 0x1ffffff, 0x3ffffff, 0x1ffffff, 0x3ffffff, 0x1ffffff, 0x3ffffff, 0x1ffffff,
|
||||
0x3ffffff, 0x1ffffff,
|
||||
|
|
|
|||
|
|
@ -156,8 +156,11 @@ impl ConditionallySelectable for FieldElement51 {
|
|||
}
|
||||
|
||||
impl FieldElement51 {
|
||||
/// The scalar \\( 0 \\).
|
||||
pub const ZERO: FieldElement51 = FieldElement51([0, 0, 0, 0, 0]);
|
||||
/// The scalar \\( 1 \\).
|
||||
pub const ONE: FieldElement51 = FieldElement51([1, 0, 0, 0, 0]);
|
||||
/// The scalar \\( -1 \\).
|
||||
pub const MINUS_ONE: FieldElement51 = FieldElement51([
|
||||
2251799813685228,
|
||||
2251799813685247,
|
||||
|
|
|
|||
|
|
@ -282,8 +282,11 @@ impl ConditionallySelectable for FieldElement2625 {
|
|||
}
|
||||
|
||||
impl FieldElement2625 {
|
||||
/// The scalar \\( 0 \\).
|
||||
pub const ZERO: FieldElement2625 = FieldElement2625([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
||||
/// The scalar \\( 1 \\).
|
||||
pub const ONE: FieldElement2625 = FieldElement2625([1, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
||||
/// The scalar \\( -1 \\).
|
||||
pub const MINUS_ONE: FieldElement2625 = FieldElement2625([
|
||||
0x3ffffec, 0x1ffffff, 0x3ffffff, 0x1ffffff, 0x3ffffff, 0x1ffffff, 0x3ffffff, 0x1ffffff,
|
||||
0x3ffffff, 0x1ffffff,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ fn m(x: u32, y: u32) -> u64 {
|
|||
}
|
||||
|
||||
impl Scalar29 {
|
||||
/// The scalar \\( 0 \\).
|
||||
pub const ZERO: Scalar29 = Scalar29([0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
||||
|
||||
/// Unpack a 32 byte / 256 bit scalar into 9 29-bit limbs.
|
||||
|
|
|
|||
|
|
@ -253,8 +253,11 @@ impl ConditionallySelectable for FieldElement51 {
|
|||
}
|
||||
|
||||
impl FieldElement51 {
|
||||
/// The scalar \\( 0 \\).
|
||||
pub const ZERO: FieldElement51 = FieldElement51([0, 0, 0, 0, 0]);
|
||||
/// The scalar \\( 1 \\).
|
||||
pub const ONE: FieldElement51 = FieldElement51([1, 0, 0, 0, 0]);
|
||||
/// The scalar \\( -1 \\).
|
||||
pub const MINUS_ONE: FieldElement51 = FieldElement51([
|
||||
2251799813685228,
|
||||
2251799813685247,
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ fn m(x: u64, y: u64) -> u128 {
|
|||
}
|
||||
|
||||
impl Scalar52 {
|
||||
/// The scalar \\( 0 \\).
|
||||
pub const ZERO: Scalar52 = Scalar52([0, 0, 0, 0, 0]);
|
||||
|
||||
/// Unpack a 32 byte / 256 bit scalar into 5 52-bit limbs.
|
||||
|
|
|
|||
Loading…
Reference in a new issue