From d33dac7b4328c00ce4d3e6f883e573625fe39f85 Mon Sep 17 00:00:00 2001 From: Andrew Thoelke Date: Fri, 12 Sep 2025 16:00:22 +0100 Subject: [PATCH 1/2] Fix example definition of PSA_ALG_IS_SIGN_HASH() --- doc/crypto/appendix/history.rst | 2 +- doc/crypto/appendix/specdef_values.rst | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/crypto/appendix/history.rst b/doc/crypto/appendix/history.rst index 7c6ded68..97f42443 100644 --- a/doc/crypto/appendix/history.rst +++ b/doc/crypto/appendix/history.rst @@ -22,7 +22,7 @@ Changes to the API Clarifications and fixes ~~~~~~~~~~~~~~~~~~~~~~~~ -* TBD +* Corrected the example implementation of `PSA_ALG_IS_SIGN_HASH()` in :secref:`appendix-specdef-values`, to exclude PureEdDSA. Other changes ~~~~~~~~~~~~~ diff --git a/doc/crypto/appendix/specdef_values.rst b/doc/crypto/appendix/specdef_values.rst index 1702167b..c9bffc72 100644 --- a/doc/crypto/appendix/specdef_values.rst +++ b/doc/crypto/appendix/specdef_values.rst @@ -155,7 +155,8 @@ Algorithm macros (((alg) & 0x7f000000) == 0x06000000) #define PSA_ALG_IS_SIGN_HASH(alg) \ - PSA_ALG_IS_SIGN(alg) + (PSA_ALG_IS_SIGN(alg) && \ + (alg) != PSA_ALG_PURE_EDDSA) #define PSA_ALG_IS_SIGN_MESSAGE(alg) \ (PSA_ALG_IS_SIGN(alg) && \ From 9a3638833c0a05b3bfb9a623a0a9524995afcb7e Mon Sep 17 00:00:00 2001 From: Andrew Thoelke Date: Fri, 12 Sep 2025 16:02:15 +0100 Subject: [PATCH 2/2] Update copyright --- doc/crypto/appendix/specdef_values.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/crypto/appendix/specdef_values.rst b/doc/crypto/appendix/specdef_values.rst index c9bffc72..9bfa3ca5 100644 --- a/doc/crypto/appendix/specdef_values.rst +++ b/doc/crypto/appendix/specdef_values.rst @@ -1,4 +1,4 @@ -.. SPDX-FileCopyrightText: Copyright 2020-2024 Arm Limited and/or its affiliates +.. SPDX-FileCopyrightText: Copyright 2020-2025 Arm Limited and/or its affiliates .. SPDX-License-Identifier: CC-BY-SA-4.0 AND LicenseRef-Patent-license .. _appendix-specdef-values: