1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

More tweaks on EC-related wording

Use m for the bit size of the field order, not q which is
traditionally the field order.

Correct and clarify the private key representation format as has been
done for the private key and ECDH shared secret formats.
This commit is contained in:
Gilles Peskine
2018-11-15 17:44:43 +01:00
parent 7b5b4a01a4
commit 6c6a023f99
2 changed files with 18 additions and 14 deletions

View File

@ -422,10 +422,9 @@
* parameters OBJECT IDENTIFIER } -- namedCurve
* ECPoint ::= ...
* -- first 8 bits: 0x04;
* -- then x_P as a `ceiling(n/8)`-byte string, big endian;
* -- then y_P as a `ceiling(n/8)`-byte string, big endian;
* -- where `n` is the bit size associated with the curve,
* -- i.e. the bit size of `q` for a curve over `F_q`.
* -- then x_P as a `ceiling(m/8)`-byte string, big endian;
* -- then y_P as a `ceiling(m/8)`-byte string, big endian;
* -- where `m` is the bit size associated with the curve.
*
* - 2 * 4 bytes of SEQUENCE overhead;
* - 1 + 1 + 7 bytes of algorithm (id-ecPublicKey OID);