mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
C++ compat
This commit is contained in:
parent
6be1ce3f34
commit
dca2131f45
@ -16,9 +16,12 @@ char hex[crypto_scalarmult_BYTES * 2 + 1];
|
||||
|
||||
int main(void)
|
||||
{
|
||||
unsigned char *alicepk = sodium_malloc(crypto_scalarmult_BYTES);
|
||||
unsigned char *bobpk = sodium_malloc(crypto_scalarmult_BYTES);
|
||||
unsigned char *k = sodium_malloc(crypto_scalarmult_BYTES);
|
||||
unsigned char *alicepk =
|
||||
(unsigned char *) sodium_malloc(crypto_scalarmult_BYTES);
|
||||
unsigned char *bobpk =
|
||||
(unsigned char *) sodium_malloc(crypto_scalarmult_BYTES);
|
||||
unsigned char *k =
|
||||
(unsigned char *) sodium_malloc(crypto_scalarmult_BYTES);
|
||||
|
||||
assert(alicepk != NULL && bobpk != NULL && k != NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user