libsodium: Disable unused function

This commit is contained in:
Sebastian Huber 2019-08-27 10:26:07 +02:00
parent 303dbe5f05
commit 054f66bfff

View File

@ -72,12 +72,14 @@ crypto_onetimeauth_poly1305_statebytes(void)
return sizeof(crypto_onetimeauth_poly1305_state); return sizeof(crypto_onetimeauth_poly1305_state);
} }
#ifndef __rtems__
void void
crypto_onetimeauth_poly1305_keygen( crypto_onetimeauth_poly1305_keygen(
unsigned char k[crypto_onetimeauth_poly1305_KEYBYTES]) unsigned char k[crypto_onetimeauth_poly1305_KEYBYTES])
{ {
randombytes_buf(k, crypto_onetimeauth_poly1305_KEYBYTES); randombytes_buf(k, crypto_onetimeauth_poly1305_KEYBYTES);
} }
#endif /* __rtems__ */
int int
_crypto_onetimeauth_poly1305_pick_best_implementation(void) _crypto_onetimeauth_poly1305_pick_best_implementation(void)