| 1 |
xeddsa.h |
| 2 |
======== |
| 3 |
|
| 4 |
Formats |
| 5 |
------- |
| 6 |
|
| 7 |
The library follows following standards for serialization formats: |
| 8 |
|
| 9 |
* Curve25519/Ed25519 private keys: 32 bytes scalar value. No specific format. Clamped before every use as per `RFC 7748, section 5 "The X25519 and X448 Functions" <https://www.rfc-editor.org/rfc/rfc7748.html#section-5>`_. |
| 10 |
* Curve25519/Ed25519 seeds: 32 bytes. No specific format. The private key is derived from the seed using SHA-512 as per `RFC 8032, section 3.2 "Keys" <https://www.rfc-editor.org/rfc/rfc8032.html#section-3.2>`_. |
| 11 |
* Curve25519 public keys: 32 bytes, the little-endian encoding of the u coordinate as per `RFC 7748, section 5 "The X25519 and X448 Functions" <https://www.rfc-editor.org/rfc/rfc7748.html#section-5>`_. |
| 12 |
* Ed25519 public keys: 32 bytes, the little-endian encoding of the y coordinate with the sign bit of the x coordinate stored in the most significant bit as per `RFC 8032, section 3.2 "Keys" <https://www.rfc-editor.org/rfc/rfc8032.html#section-3.2>`_. |
| 13 |
* Ed25519 signatures: 64 bytes, following the format defined in `RFC 8032, section 3.3 "Sign" <https://www.rfc-editor.org/rfc/rfc8032.html#section-3.3>`_. |
| 14 |
|
| 15 |
API |
| 16 |
--- |
| 17 |
|
| 18 |
.. doxygenfile:: xeddsa.h |
| 19 |
:project: libxeddsa |