mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-03 12:51:01 +00:00
fixup sizes
This commit is contained in:
parent
4f6c77b0a9
commit
cb6adbb750
|
@ -412,10 +412,10 @@
|
||||||
* AlgorithmIdentifier ::= SEQUENCE {
|
* AlgorithmIdentifier ::= SEQUENCE {
|
||||||
* algorithm OBJECT IDENTIFIER,
|
* algorithm OBJECT IDENTIFIER,
|
||||||
* parameters OBJECT IDENTIFIER } -- namedCurve
|
* parameters OBJECT IDENTIFIER } -- namedCurve
|
||||||
* ECPoint ::= OCTET STRING
|
* ECPoint ::= ...
|
||||||
* -- first byte: 0x04;
|
* -- first 8 bits: 0x04;
|
||||||
* -- then x_P as a `ceiling(log_{256}(n))`-byte string, big endian;
|
* -- then x_P as an n-bit string, big endian;
|
||||||
* -- then y_P as a `ceiling(log_{256}(n))`-byte string, big endian,
|
* -- then y_P as a n-bit string, big endian,
|
||||||
* -- where n is the order of the curve.
|
* -- where n is the order of the curve.
|
||||||
*
|
*
|
||||||
* - 2 * 4 bytes of SEQUENCE overhead;
|
* - 2 * 4 bytes of SEQUENCE overhead;
|
||||||
|
@ -432,10 +432,10 @@
|
||||||
* ECPrivateKey ::= SEQUENCE {
|
* ECPrivateKey ::= SEQUENCE {
|
||||||
* version INTEGER, -- must be 1
|
* version INTEGER, -- must be 1
|
||||||
* privateKey OCTET STRING,
|
* privateKey OCTET STRING,
|
||||||
* -- `ceiling(log_{256}(n))`-byte string, big endian,
|
* -- `ceiling(log2(n)/8)`-byte string, big endian,
|
||||||
* -- where n is the order of the curve.
|
* -- where n is the order of the curve.
|
||||||
* parameters ECParameters {{ NamedCurve }}, -- mandatory
|
* parameters [0] IMPLICIT ECParameters {{ NamedCurve }},
|
||||||
* publicKey BIT STRING -- mandatory
|
* publicKey [1] IMPLICIT BIT STRING
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* - 4 bytes of SEQUENCE overhead;
|
* - 4 bytes of SEQUENCE overhead;
|
||||||
|
|
Loading…
Reference in a new issue