mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
chore: fix spelling issues (#727)
Signed-off-by: camcui <cuishua@sina.cn>
This commit is contained in:
parent
485ffab769
commit
6a0caa1b98
3 changed files with 7 additions and 7 deletions
|
|
@ -43,7 +43,7 @@ pub mod spec {
|
||||||
/// method. See the `Straus` struct in the serial backend for more
|
/// method. See the `Straus` struct in the serial backend for more
|
||||||
/// details.
|
/// details.
|
||||||
///
|
///
|
||||||
/// This exists as a seperate implementation from that one because the
|
/// This exists as a separate implementation from that one because the
|
||||||
/// AVX2 code uses different curve models (it does not pass between
|
/// AVX2 code uses different curve models (it does not pass between
|
||||||
/// multiple models during scalar mul), and it has to convert the
|
/// multiple models during scalar mul), and it has to convert the
|
||||||
/// point representation on the fly.
|
/// point representation on the fly.
|
||||||
|
|
|
||||||
|
|
@ -4,22 +4,22 @@
|
||||||
#[cfg(curve25519_dalek_backend = "auto")]
|
#[cfg(curve25519_dalek_backend = "auto")]
|
||||||
compile_error!("curve25519_dalek_backend is 'auto'");
|
compile_error!("curve25519_dalek_backend is 'auto'");
|
||||||
|
|
||||||
// fiat was overriden
|
// fiat was overridden
|
||||||
#[cfg(curve25519_dalek_backend = "fiat")]
|
#[cfg(curve25519_dalek_backend = "fiat")]
|
||||||
compile_error!("curve25519_dalek_backend is 'fiat'");
|
compile_error!("curve25519_dalek_backend is 'fiat'");
|
||||||
|
|
||||||
// serial was assumed or overriden
|
// serial was assumed or overridden
|
||||||
#[cfg(curve25519_dalek_backend = "serial")]
|
#[cfg(curve25519_dalek_backend = "serial")]
|
||||||
compile_error!("curve25519_dalek_backend is 'serial'");
|
compile_error!("curve25519_dalek_backend is 'serial'");
|
||||||
|
|
||||||
// simd was assumed over overriden
|
// simd was assumed over overridden
|
||||||
#[cfg(curve25519_dalek_backend = "simd")]
|
#[cfg(curve25519_dalek_backend = "simd")]
|
||||||
compile_error!("curve25519_dalek_backend is 'simd'");
|
compile_error!("curve25519_dalek_backend is 'simd'");
|
||||||
|
|
||||||
// 32 bits target_pointer_width was assumed or overriden
|
// 32 bits target_pointer_width was assumed or overridden
|
||||||
#[cfg(curve25519_dalek_bits = "32")]
|
#[cfg(curve25519_dalek_bits = "32")]
|
||||||
compile_error!("curve25519_dalek_bits is '32'");
|
compile_error!("curve25519_dalek_bits is '32'");
|
||||||
|
|
||||||
// 64 bits target_pointer_width was assumed or overriden
|
// 64 bits target_pointer_width was assumed or overridden
|
||||||
#[cfg(curve25519_dalek_bits = "64")]
|
#[cfg(curve25519_dalek_bits = "64")]
|
||||||
compile_error!("curve25519_dalek_bits is '64'");
|
compile_error!("curve25519_dalek_bits is '64'");
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ match_and_report "curve25519_dalek_bits is '32'" "$OUT"
|
||||||
cargo clean
|
cargo clean
|
||||||
OUT=build_5_1.txt
|
OUT=build_5_1.txt
|
||||||
env RUSTFLAGS="--cfg curve25519_dalek_diagnostics=\"build\" --cfg curve25519_dalek_backend=\"simd\"" cargo build --target wasm32-unknown-unknown > "$OUT" 2>&1
|
env RUSTFLAGS="--cfg curve25519_dalek_diagnostics=\"build\" --cfg curve25519_dalek_backend=\"simd\"" cargo build --target wasm32-unknown-unknown > "$OUT" 2>&1
|
||||||
# This overide must fail the compilation since "simd" is not available
|
# This override must fail the compilation since "simd" is not available
|
||||||
# See: issues/532
|
# See: issues/532
|
||||||
match_and_report "Could not override curve25519_dalek_backend to simd" "$OUT"
|
match_and_report "Could not override curve25519_dalek_backend to simd" "$OUT"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue