1# 2# Copyright (c) 2024, Arm Limited. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7# Hash algorithm for DICE Protection Environment 8# SHA-256 (or stronger) is required. 9DPE_HASH_ALG := sha256 10 11ifeq (${DPE_HASH_ALG}, sha512) 12 DPE_ALG_ID := DPE_ALG_SHA512 13 DPE_DIGEST_SIZE := 64U 14else ifeq (${DPE_HASH_ALG}, sha384) 15 DPE_ALG_ID := DPE_ALG_SHA384 16 DPE_DIGEST_SIZE := 48U 17else 18 DPE_ALG_ID := DPE_ALG_SHA256 19 DPE_DIGEST_SIZE := 32U 20endif #DPE_HASH_ALG 21 22# Set definitions for DICE Protection Environment 23$(eval $(call add_defines,\ 24 $(sort \ 25 DPE_ALG_ID \ 26 DPE_DIGEST_SIZE \ 27))) 28 29DPE_SOURCES += drivers/measured_boot/rse/dice_prot_env.c 30