diff options
Diffstat (limited to 'toxcore/crypto_core.h')
-rw-r--r-- | toxcore/crypto_core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/toxcore/crypto_core.h b/toxcore/crypto_core.h index c5969453..6b69f917 100644 --- a/toxcore/crypto_core.h +++ b/toxcore/crypto_core.h | |||
@@ -45,6 +45,15 @@ | |||
45 | return -1 if they are not. */ | 45 | return -1 if they are not. */ |
46 | int crypto_cmp(uint8_t *mem1, uint8_t *mem2, uint32_t length); | 46 | int crypto_cmp(uint8_t *mem1, uint8_t *mem2, uint32_t length); |
47 | 47 | ||
48 | /* return a random number. | ||
49 | * | ||
50 | * random_int for a 32bin int. | ||
51 | * random_64b for a 64bit int. | ||
52 | */ | ||
53 | uint32_t random_int(void); | ||
54 | uint64_t random_64b(void); | ||
55 | |||
56 | |||
48 | /* Encrypts plain of length length to encrypted of length + 16 using the | 57 | /* Encrypts plain of length length to encrypted of length + 16 using the |
49 | * public key(32 bytes) of the receiver and the secret key of the sender and a 24 byte nonce. | 58 | * public key(32 bytes) of the receiver and the secret key of the sender and a 24 byte nonce. |
50 | * | 59 | * |