Ed25519: add missing C++ directives for C functions

Assembly code has C function names.
Need to tell C++ that these are C function and not to mangle names.
This commit is contained in:
Sean Parkinson
2023-10-20 12:02:51 +10:00
parent 1abaa94120
commit c88dcac80e

View File

@ -70,6 +70,9 @@ typedef struct {
ge T; ge T;
} ge_p3; } ge_p3;
#ifdef __cplusplus
extern "C" {
#endif
WOLFSSL_LOCAL int ge_compress_key(byte* out, const byte* xIn, const byte* yIn, WOLFSSL_LOCAL int ge_compress_key(byte* out, const byte* xIn, const byte* yIn,
word32 keySz); word32 keySz);
@ -122,6 +125,10 @@ void ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q); void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
#endif #endif
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* HAVE_ED25519 */ #endif /* HAVE_ED25519 */
#endif /* WOLF_CRYPT_GE_OPERATIONS_H */ #endif /* WOLF_CRYPT_GE_OPERATIONS_H */