Skip to content

[pull] master from ipxe:master#561

Merged
pull[bot] merged 1 commit intophiberoptick:masterfrom
ipxe:master
Dec 11, 2025
Merged

[pull] master from ipxe:master#561
pull[bot] merged 1 commit intophiberoptick:masterfrom
ipxe:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Dec 11, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ECDSA signature values and private keys are fixed-length unsigned
integers modulo N (the group order of the elliptic curve) and are
therefore most naturally represented in ASN.1 using ASN1_OCTET_STRING.

Private key representations do use ASN1_OCTET_STRING, but signature
values tend to use ASN1_INTEGER, which adds no value but does ensure
that the encoding becomes variable-length and requires handling a
pointless extra zero byte if the MSB of the unsigned value happens to
be set.

RSA also makes use of ASN1_INTEGER for modulus and exponent values.
Generalise the existing rsa_parse_integer() to asn1_enter_unsigned()
to allow this code to be reused for ECDSA.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
@pull pull bot locked and limited conversation to collaborators Dec 11, 2025
@pull pull bot added the ⤵️ pull label Dec 11, 2025
@pull pull bot merged commit fb11889 into phiberoptick:master Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant