arm-trusted-firmware/drivers/measured_boot/rse/dice_prot_env.mk
Tamas Ban b8245368cc refactor(measured-boot): change all occurrences of RSS to RSE
Changes all occurrences of "RSS" and "rss" in the code and build files
to "RSE" and "rse".

Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Change-Id: I8c2fcbdf1de1c75f9969d28bc15e0b3500071404
2024-04-22 15:44:38 +02:00

29 lines
689 B
Makefile

#
# Copyright (c) 2024, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Hash algorithm for DICE Protection Environment
# SHA-256 (or stronger) is required.
DPE_HASH_ALG := sha256
ifeq (${DPE_HASH_ALG}, sha512)
DPE_ALG_ID := DPE_ALG_SHA512
DPE_DIGEST_SIZE := 64U
else ifeq (${DPE_HASH_ALG}, sha384)
DPE_ALG_ID := DPE_ALG_SHA384
DPE_DIGEST_SIZE := 48U
else
DPE_ALG_ID := DPE_ALG_SHA256
DPE_DIGEST_SIZE := 32U
endif #DPE_HASH_ALG
# Set definitions for DICE Protection Environment
$(eval $(call add_defines,\
$(sort \
DPE_ALG_ID \
DPE_DIGEST_SIZE \
)))
DPE_SOURCES += drivers/measured_boot/rse/dice_prot_env.c