Skip to content

HMAC/HKDF-SHA512 support basics #2299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

de-nordic
Copy link
Collaborator

No description provided.

@de-nordic de-nordic marked this pull request as draft May 8, 2025 19:48
@nordicjm
Copy link
Collaborator

nordicjm commented May 9, 2025

requested your review on: #2299 Mac as a code owner

MCUboot now runs and boots up macs? 😆

@de-nordic de-nordic changed the title Mac HMAC/HKDF-SHA512 support basics May 9, 2025
@de-nordic de-nordic force-pushed the mac branch 4 times, most recently from c374032 to 96074f2 Compare May 9, 2025 18:27
@de-nordic de-nordic marked this pull request as ready for review May 9, 2025 18:34
de-nordic added 4 commits May 13, 2025 10:17
Information on TLV and format.

Signed-off-by: Dominik Ermel <[email protected]>
Add support for HKDF/HMAC based on SHA512 for ECIES-X25519 key
exchange.
The commit adds MCUBOOT_HMAC_SHA512 that enables new TLV
IMAGE_TLV_ENC_X25519_SHA512.
Encryption code has been altered to support the MCUBOOT_HMAC_SHA512.

Signed-off-by: Dominik Ermel <[email protected]>
The commit addds CONFIG_BOOT_HMAC_SHA512 that enables MCUboot
configuration option MCUBOOT_HMAC_SHA512, that is used for
switching HKDF/HMAC in ECIES key exchange to SHA512,
from default SHA256.
This option, currently, is only available for ECIES-X25519
with PSA as crypto backend.

Signed-off-by: Dominik Ermel <[email protected]>
Commit adds imgtool command line option --hmac-sha allowing
to select between SHA256 and SHA512 for HMAC/HKDF.

Signed-off-by: Dominik Ermel <[email protected]>
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.

2 participants