[crypto] Reject non-canonical ECDSA signature data structures An ECDSA signature value is a vector of two integers (r,s) modulo the curve group order. The ECDSA algorithm itself does not define the encoding to be used for these two integers. At least two different standards exist for representing the vector (r,s): the ASN.1 structure originally defined in RFC 3279 (which uses a SEQUENCE of two INTEGER values) and the raw byte concatenation structure defined in IEEE P1363. A valid signature vector (r,s) may be freely converted between these two formats. Changing the format does not logically change the validity of the signature. Due to the mathematics underlying ECDSA, the vector (r,-s) is also always a valid signature for the same content. With the ASN.1 structure, there exists the possibility of adding extra data that would currently be ignored by the parser: either objects following the top-level SEQUENCE, or objects within the SEQUENCE following the two INTEGER values. Adding this data does not logically change the validity of the signature, in the same way that converting between ASN.1 and P1363 does not logically change the validity of the signature. However, some public test vector sets check for the rejection of signatures containing inserted data. Reject any ECDSA signature object that includes data following the top-level SEQUENCE, or that includes data following the "r" and "s" INTEGER values. Signed-off-by: Michael Brown <mcb30@ipxe.org>
iPXE is the leading open source network boot firmware. It provides a full PXE implementation enhanced with additional features such as:
boot from a web server via HTTP or HTTPS,
boot from an iSCSI, FCoE, or AoE SAN,
control the boot process with a script,
You can use iPXE to replace the existing PXE ROM on your network card, or you can chainload into iPXE to obtain the features of iPXE without the hassle of reflashing.
iPXE is free, open-source software licensed under the GNU GPL (with some portions under GPL-compatible licences).
You can download the rolling release binaries (built from the latest commit), or use the most recent stable release.
For full documentation, visit the iPXE website.