Skip to content

Commit c88dcac

Browse files
committed
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.
1 parent 1abaa94 commit c88dcac

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

wolfssl/wolfcrypt/ge_operations.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ typedef struct {
7070
ge T;
7171
} ge_p3;
7272

73+
#ifdef __cplusplus
74+
extern "C" {
75+
#endif
7376

7477
WOLFSSL_LOCAL int ge_compress_key(byte* out, const byte* xIn, const byte* yIn,
7578
word32 keySz);
@@ -122,6 +125,10 @@ void ge_add(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
122125
void ge_sub(ge_p1p1 *r, const ge_p3 *p, const ge_cached *q);
123126
#endif
124127

128+
#ifdef __cplusplus
129+
} /* extern "C" */
130+
#endif
131+
125132
#endif /* HAVE_ED25519 */
126133

127134
#endif /* WOLF_CRYPT_GE_OPERATIONS_H */

0 commit comments

Comments
 (0)