From d48b0700afc22d2f61cb26a7e7ed7e65fc8a533c Mon Sep 17 00:00:00 2001 From: Mark Atwood Date: Thu, 30 Apr 2026 15:38:04 -0700 Subject: [PATCH] fix: update Ed448 DER Doxygen prototypes to match public header --- doc/dox_comments/header_files/asn_public.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/dox_comments/header_files/asn_public.h b/doc/dox_comments/header_files/asn_public.h index 6adde2ea5f..a1adf21c52 100644 --- a/doc/dox_comments/header_files/asn_public.h +++ b/doc/dox_comments/header_files/asn_public.h @@ -2845,7 +2845,7 @@ int wc_Ed448PublicKeyDecode(const byte* input, word32* inOutIdx, \sa wc_Ed448PrivateKeyToDer */ -int wc_Ed448KeyToDer(ed448_key* key, byte* output, word32 inLen); +int wc_Ed448KeyToDer(const ed448_key* key, byte* output, word32 inLen); /*! \ingroup Ed448 @@ -2868,7 +2868,7 @@ int wc_Ed448KeyToDer(ed448_key* key, byte* output, word32 inLen); \sa wc_Ed448PrivateKeyDecode */ -int wc_Ed448PrivateKeyToDer(ed448_key* key, byte* output, +int wc_Ed448PrivateKeyToDer(const ed448_key* key, byte* output, word32 inLen); /*! @@ -2881,19 +2881,20 @@ int wc_Ed448PrivateKeyToDer(ed448_key* key, byte* output, \param key Ed448 key structure with public key \param output Buffer for DER encoded public key \param inLen Size of output buffer + \param withAlg 1 to include algorithm identifier, 0 for key data only _Example_ \code ed448_key key; byte der[1024]; int derSz = wc_Ed448PublicKeyToDer(&key, der, - sizeof(der)); + sizeof(der), 1); \endcode \sa wc_Ed448PublicKeyDecode */ -int wc_Ed448PublicKeyToDer(ed448_key* key, byte* output, - int inLen); +int wc_Ed448PublicKeyToDer(const ed448_key* key, byte* output, + word32 inLen, int withAlg); /*! \ingroup Curve448