Uploaded image for project: 'MCUboot'
  1. MCUB-85

Remove padding for ECDSA signatures

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects versions: None
    • Fix versions: None
    • Components: None
    • Labels:
      None

      Description

      Now that the header no longer contains the TLV size, it is not necessary to pad the value used for an ECDSA signature. These signatures can vary slightly in size, depending on the setting of the highest bit (they are encoded as signed integers, which if the high bit is set, will cause an extra 0x00 byte to be emitted).

      However, imgtool.py and the verification code still have support for this padding. We probably can't remove the code that verified from allowing the padding, since that would break parsing of existing signatures, but we can change imgtool to no long add the padding.

        Attachments

          Activity

            People

            • Assignee:
              david.brown David Brown
              Reporter:
              david.brown David Brown
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync