Skip to content

HMAC/HKDF-SHA512 support basics #2299

New issue

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

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

Already on ? Sign in to your account

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

Conversation

de-nordic
Copy link
Collaborator

No description provided.

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

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

MCUboot now runs and boots up macs? 😆

@de-nordicde-nordic changed the title Mac HMAC/HKDF-SHA512 support basics May 9, 2025
@de-nordicde-nordic force-pushed the mac branch 2 times, most recently from c25323c to a2a38b1 Compare May 9, 2025 18:16
Provide proper identifiers for size and partitioning of the
HKDF output.

Signed-off-by: Dominik Ermel <[email protected]>
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]>
@de-nordicde-nordic marked this pull request as ready for review May 9, 2025 18:34
Sign up for free to join this conversation on . 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