diff --git a/src/shared/crypto.c b/src/shared/crypto.c
index 6de5514..ce0dcd6 100644
--- a/src/shared/crypto.c
+++ b/src/shared/crypto.c
}
bool bt_crypto_random_bytes(struct bt_crypto *crypto,
- uint8_t *buf, uint8_t num_bytes)
+ void *buf, uint8_t num_bytes)
{
ssize_t len;
diff --git a/src/shared/crypto.h b/src/shared/crypto.h
index 84d4992..1e1b483 100644
--- a/src/shared/crypto.h
+++ b/src/shared/crypto.h
void bt_crypto_unref(struct bt_crypto *crypto);
bool bt_crypto_random_bytes(struct bt_crypto *crypto,
- uint8_t *buf, uint8_t num_bytes);
+ void *buf, uint8_t num_bytes);
bool bt_crypto_e(struct bt_crypto *crypto, const uint8_t key[16],
const uint8_t plaintext[16], uint8_t encrypted[16]);