Skip to content

imgtool: allow P-256 encryption key with P-384 signing key - #2889

Open
Ta-ras wants to merge 1 commit into
mcu-tools:mainfrom
Ta-ras:imgtool-enc-sign-keys-fix
Open

Ta-ras wants to merge 1 commit into
mcu-tools:mainfrom
Ta-ras:imgtool-enc-sign-keys-fix

Conversation

@Ta-ras

@Ta-ras Ta-ras commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

imgtool: decouple encryption key type from ECDSA P-384 signing key

Fix encrypted image creation for devices that have an ECDSA P-384 image-validation key provisioned in hardware. MCUboot does not support image encryption with P-384 keys; ECIES is only defined for P-256 (ENC_EC256). The only way to encrypt images for these devices is to encrypt with a P-256 key and sign with the provisioned P-384 key.

This PR allows an P-256 encryption key together with an ECDSA P-384 signing key.

@Ta-ras
Ta-ras requested a review from d3zd3z as a code owner October 8, 2026 22:30
@Ta-ras
Ta-ras force-pushed the imgtool-enc-sign-keys-fix branch 2 times, most recently from 7ca548f to b809eac Compare October 8, 2026 23:14
@Ta-ras
Ta-ras force-pushed the imgtool-enc-sign-keys-fix branch from b809eac to 416e93d Compare November 2, 2026 11:54
Fix encrypted image creation for devices that have an ECDSA P-384
image-validation key provisioned in hardware.

MCUboot does not support image encryption with P-384 keys: ECIES is
only defined for P-256 (ENC_EC256). The only way to encrypt images
for these devices is to encrypt with a P-256 key and sign with the
provisioned P-384 key.

Decouple the encryption key type from the signing key type, so a
P-256 encryption key can be used together with a P-384 signing key.

Signed-off-by: Ta-ras <taras.b@infineon.com>
@Ta-ras Ta-ras changed the title Allow an P-256 encryption key together with an P-384 signing key imgtool: allow P-256 encryption key with P-384 signing key Nov 2, 2026
@Ta-ras
Ta-ras force-pushed the imgtool-enc-sign-keys-fix branch from 416e93d to 3e7f325 Compare November 2, 2026 12:04

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant