diff options
| author | guenther <> | 2016-11-07 21:30:42 +0000 |
|---|---|---|
| committer | guenther <> | 2016-11-07 21:30:42 +0000 |
| commit | 94f7fae06201a97d251d9cea850aca566d5df4e0 (patch) | |
| tree | ce387d254163cf4bbdf25fbc8eafbd7a50a84ffc /src | |
| parent | e8a96d0a8ec3bdbfd114c587555f1cdbcffb1a03 (diff) | |
| download | openbsd-94f7fae06201a97d251d9cea850aca566d5df4e0.tar.gz openbsd-94f7fae06201a97d251d9cea850aca566d5df4e0.tar.bz2 openbsd-94f7fae06201a97d251d9cea850aca566d5df4e0.zip | |
Use __{BEGIN,END}_HIDDEN_DECLS to avoid exporting the internal symbols
ok jsing@
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/curve25519/curve25519_internal.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/libcrypto/curve25519/curve25519_internal.h b/src/lib/libcrypto/curve25519/curve25519_internal.h index 09306b9ce8..f80424a6b7 100644 --- a/src/lib/libcrypto/curve25519/curve25519_internal.h +++ b/src/lib/libcrypto/curve25519/curve25519_internal.h | |||
| @@ -19,9 +19,7 @@ | |||
| 19 | 19 | ||
| 20 | #include <stdint.h> | 20 | #include <stdint.h> |
| 21 | 21 | ||
| 22 | #if defined(__cplusplus) | 22 | __BEGIN_HIDDEN_DECLS |
| 23 | extern "C" { | ||
| 24 | #endif | ||
| 25 | 23 | ||
| 26 | /* fe means field element. Here the field is \Z/(2^255-19). An element t, | 24 | /* fe means field element. Here the field is \Z/(2^255-19). An element t, |
| 27 | * entries t[0]...t[9], represents the integer t[0]+2^26 t[1]+2^51 t[2]+2^77 | 25 | * entries t[0]...t[9], represents the integer t[0]+2^26 t[1]+2^51 t[2]+2^77 |
| @@ -95,8 +93,6 @@ void x25519_scalar_mult(uint8_t out[32], const uint8_t scalar[32], | |||
| 95 | void x25519_scalar_mult_generic(uint8_t out[32], const uint8_t scalar[32], | 93 | void x25519_scalar_mult_generic(uint8_t out[32], const uint8_t scalar[32], |
| 96 | const uint8_t point[32]); | 94 | const uint8_t point[32]); |
| 97 | 95 | ||
| 98 | #if defined(__cplusplus) | 96 | __END_HIDDEN_DECLS |
| 99 | } /* extern C */ | ||
| 100 | #endif | ||
| 101 | 97 | ||
| 102 | #endif /* HEADER_CURVE25519_INTERNAL_H */ | 98 | #endif /* HEADER_CURVE25519_INTERNAL_H */ |
