Diff between bee9046d05531d822c6a779accf72e22e2c6f6d3 and c30b61589981f3420343a3fb517f7607939de345

Changed Files

File Additions Deletions Status
src/shared/crypto.c +1 -1 modified
src/shared/crypto.h +1 -1 modified

Full Patch

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
@@ -193,7 +193,7 @@ 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)
 {
 	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
@@ -32,7 +32,7 @@ struct bt_crypto *bt_crypto_ref(struct bt_crypto *crypto);
 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]);