mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00

The digest size in bytes for sha1/256/384/512 were defined in multiple places. Refactor the macros into a common header file. Change-Id: I84ef3561486ff70345ae8c871d5d6e1564574ec2 Signed-off-by: Raghu Krishnamurthy <raghupathyk@nvidia.com>
19 lines
559 B
C
19 lines
559 B
C
/*
|
|
* Copyright (c) 2024, NVIDIA Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef SHA_COMMON_MACROS_H
|
|
#define SHA_COMMON_MACROS_H
|
|
|
|
#define MD5_DIGEST_SIZE 16U
|
|
#define SHA1_DIGEST_SIZE 20U
|
|
#define SHA224_DIGEST_SIZE 28U
|
|
#define SHA256_DIGEST_SIZE 32U
|
|
#define SHA384_DIGEST_SIZE 48U
|
|
#define SHA512_224_DIGEST_SIZE 28U
|
|
#define SHA512_256_DIGEST_SIZE 32U
|
|
#define SHA512_DIGEST_SIZE 64U
|
|
|
|
#endif /* SHA_COMMON_MACROS_H */
|