mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-07 20:30:39 +00:00
Clarify abstraction layers in Ristretto intro
This commit is contained in:
parent
c841998b07
commit
35e1b07e72
1 changed files with 12 additions and 8 deletions
|
|
@ -23,7 +23,7 @@
|
||||||
//! Eliminating cofactors through point
|
//! Eliminating cofactors through point
|
||||||
//! compression_](https://eprint.iacr.org/2015/673.pdf), notes that while
|
//! compression_](https://eprint.iacr.org/2015/673.pdf), notes that while
|
||||||
//! most cryptographic systems require a group of prime order, most
|
//! most cryptographic systems require a group of prime order, most
|
||||||
//! concrete implementations using elliptic curve groups fall short --
|
//! concrete implementations using elliptic curve groups fall short –
|
||||||
//! they either provide a group of prime order, but with incomplete or
|
//! they either provide a group of prime order, but with incomplete or
|
||||||
//! variable-time addition formulae (for instance, most Weierstrass
|
//! variable-time addition formulae (for instance, most Weierstrass
|
||||||
//! models), or else they provide a fast and safe implementation of a
|
//! models), or else they provide a fast and safe implementation of a
|
||||||
|
|
@ -31,15 +31,19 @@
|
||||||
//! small cofactor \\(h\\) (for instance, Edwards curves, which have
|
//! small cofactor \\(h\\) (for instance, Edwards curves, which have
|
||||||
//! cofactor at least \\(4\\)).
|
//! cofactor at least \\(4\\)).
|
||||||
//!
|
//!
|
||||||
//! This abstraction mismatch requires ad-hoc protocol modifications to
|
//! This abstraction mismatch is commonly “handled” by pushing the
|
||||||
//! ensure security; these modifications require careful analysis and
|
//! complexity upwards, adding ad-hoc protocol modifications. But
|
||||||
//! are a recurring source of [vulnerabilities][cryptonote] and [design
|
//! these modifications require careful analysis and are a recurring
|
||||||
|
//! source of unexpected [vulnerabilities][cryptonote] and [design
|
||||||
//! complications][ed25519_hkd].
|
//! complications][ed25519_hkd].
|
||||||
//!
|
//!
|
||||||
//! Instead, Ristretto uses a quotient group to implement a prime-order
|
//! Instead, Ristretto uses a quotient group to implement a
|
||||||
//! group using a non-prime-order curve. More details are described in
|
//! prime-order group using a non-prime-order curve. This provides
|
||||||
//! the *Implementation* section below. Ristretto points are provided
|
//! the correct abstraction for cryptographic systems, while retaining
|
||||||
//! in `curve25519-dalek` by the `RistrettoPoint` struct.
|
//! the speed and safety benefits of an Edwards curve. More details
|
||||||
|
//! are described in the *Implementation* section below. Ristretto
|
||||||
|
//! points are provided in `curve25519-dalek` by the `RistrettoPoint`
|
||||||
|
//! struct.
|
||||||
//!
|
//!
|
||||||
//! ## Encoding and Decoding
|
//! ## Encoding and Decoding
|
||||||
//!
|
//!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue