CPACE-X25519-SHA512 as the Sendspin specification uses it for the code-based pairing (issue #325, task 11.1): the group of G_X25519 with the Elligator 2 map of RFC 9380, SHA-512, the initiator/responder transcript, and the key confirmation that the draft-irtf-cfrg-cpace-21 suggests (a MAC key from the intermediate session key, HMAC-SHA-512 over the sender's own message).
More...
|
| class | Party |
| | One party of a CPace run: its share, the key it derived and the tags.
|
| |
|
|
static byte[] | generator (byte[] prs, byte[] ci, byte[] sid) |
| | G_X25519.calculate_generator: hash, decode as a u-coordinate, map with Elligator 2; the u-coordinate of the point.
|
| |
|
static byte[] | scalarMult (byte[] y, byte[] u) |
| | X25519(y, u) (RFC 7748: the scalar is clamped, bit 255 of the coordinate is ignored); no check of the result.
|
| |
| static byte[] | scalarMultVfy (byte[] y, byte[] u) throws CpaceException |
| | G_X25519.scalar_mult_vfy: as scalarMult and the abort condition of CPace: the result is the neutral element (all zero), which a point of small order gives.
|
| |
|
static Party | initiator (byte[] prs, byte[] sid, SecureRandom random) |
| | The server's side (role A, the initiator) of a run with the pairing code prs and the session id sid.
|
| |
|
static Party | responder (byte[] prs, byte[] sid, SecureRandom random) |
| | The client's side (role B, the responder).
|
| |
|
|
static final int | FIELD_BYTES = 32 |
| |
CPACE-X25519-SHA512 as the Sendspin specification uses it for the code-based pairing (issue #325, task 11.1): the group of G_X25519 with the Elligator 2 map of RFC 9380, SHA-512, the initiator/responder transcript, and the key confirmation that the draft-irtf-cfrg-cpace-21 suggests (a MAC key from the intermediate session key, HMAC-SHA-512 over the sender's own message).
Checked against the draft's test vectors in CpaceTest. The primitives (X25519, SHA-512, HMAC) are the platform's and the library's; nothing of this is a curve or a hash of its own. Sendspin's instantiation: CI empty, ADa "server", ADb "client".
◆ scalarMultVfy()
| static byte[] de.yaacc.sendspin.secure.Cpace.scalarMultVfy |
( |
byte[] | y, |
|
|
byte[] | u ) throws CpaceException |
|
static |
G_X25519.scalar_mult_vfy: as scalarMult and the abort condition of CPace: the result is the neutral element (all zero), which a point of small order gives.
- Exceptions
-
| CpaceException | if the share has the wrong length or encodes a point of small order |
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/sendspin/secure/Cpace.java