From 63b23073b99097f03a57eb8f0e11a906cc4313d6 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 13 Oct 2015 14:55:04 +0200 Subject: Use a better RNG for IV when encrypting session files --- Source/SPFunctions.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/SPFunctions.h') diff --git a/Source/SPFunctions.h b/Source/SPFunctions.h index b68964ca..e462b8cb 100644 --- a/Source/SPFunctions.h +++ b/Source/SPFunctions.h @@ -35,3 +35,10 @@ */ void SPMainQSync(void (^block)(void)); +/** + * Copies count bytes into buf provided by caller + * @param buf Base address to copy to + * @param count Number of bytes to copy + * @return 0 on success or -1 if something went wrong, check errno + */ +int SPBetterRandomBytes(uint8_t *buf, size_t count); -- cgit v1.2.3