crypto: clean up remaining .h->.c
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
09c7ab77e9
commit
6790b07868
|
@ -44,7 +44,7 @@ static __always_inline void normalize_secret(u8 secret[CURVE25519_KEY_SIZE])
|
||||||
secret[31] |= 64;
|
secret[31] |= 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "../../../../src/crypto/zinc/curve25519/curve25519-fiat32.h"
|
#include "../../../../src/crypto/zinc/curve25519/curve25519-fiat32.c"
|
||||||
|
|
||||||
EMSCRIPTEN_KEEPALIVE void curve25519_generate_public(u8 public[static 32], const u8 private[static 32])
|
EMSCRIPTEN_KEEPALIVE void curve25519_generate_public(u8 public[static 32], const u8 private[static 32])
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,9 +53,9 @@ static noinline void memzero_explicit(void *s, size_t count)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __SIZEOF_INT128__
|
#ifdef __SIZEOF_INT128__
|
||||||
#include "../crypto/zinc/curve25519/curve25519-hacl64.h"
|
#include "../crypto/zinc/curve25519/curve25519-hacl64.c"
|
||||||
#else
|
#else
|
||||||
#include "../crypto/zinc/curve25519/curve25519-fiat32.h"
|
#include "../crypto/zinc/curve25519/curve25519-fiat32.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void curve25519_generate_public(uint8_t pub[static CURVE25519_KEY_SIZE], const uint8_t secret[static CURVE25519_KEY_SIZE])
|
void curve25519_generate_public(uint8_t pub[static CURVE25519_KEY_SIZE], const uint8_t secret[static CURVE25519_KEY_SIZE])
|
||||||
|
|
Loading…
Reference in a new issue