Skip to content

Commit d48b070

Browse files
committed
fix: update Ed448 DER Doxygen prototypes to match public header
1 parent 1caa444 commit d48b070

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

doc/dox_comments/header_files/asn_public.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2845,7 +2845,7 @@ int wc_Ed448PublicKeyDecode(const byte* input, word32* inOutIdx,
28452845
28462846
\sa wc_Ed448PrivateKeyToDer
28472847
*/
2848-
int wc_Ed448KeyToDer(ed448_key* key, byte* output, word32 inLen);
2848+
int wc_Ed448KeyToDer(const ed448_key* key, byte* output, word32 inLen);
28492849

28502850
/*!
28512851
\ingroup Ed448
@@ -2868,7 +2868,7 @@ int wc_Ed448KeyToDer(ed448_key* key, byte* output, word32 inLen);
28682868
28692869
\sa wc_Ed448PrivateKeyDecode
28702870
*/
2871-
int wc_Ed448PrivateKeyToDer(ed448_key* key, byte* output,
2871+
int wc_Ed448PrivateKeyToDer(const ed448_key* key, byte* output,
28722872
word32 inLen);
28732873

28742874
/*!
@@ -2881,19 +2881,20 @@ int wc_Ed448PrivateKeyToDer(ed448_key* key, byte* output,
28812881
\param key Ed448 key structure with public key
28822882
\param output Buffer for DER encoded public key
28832883
\param inLen Size of output buffer
2884+
\param withAlg 1 to include algorithm identifier, 0 for key data only
28842885
28852886
_Example_
28862887
\code
28872888
ed448_key key;
28882889
byte der[1024];
28892890
int derSz = wc_Ed448PublicKeyToDer(&key, der,
2890-
sizeof(der));
2891+
sizeof(der), 1);
28912892
\endcode
28922893
28932894
\sa wc_Ed448PublicKeyDecode
28942895
*/
2895-
int wc_Ed448PublicKeyToDer(ed448_key* key, byte* output,
2896-
int inLen);
2896+
int wc_Ed448PublicKeyToDer(const ed448_key* key, byte* output,
2897+
word32 inLen, int withAlg);
28972898

28982899
/*!
28992900
\ingroup Curve448

0 commit comments

Comments
 (0)