mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
C++ compat
This commit is contained in:
+3
-3
@@ -19,9 +19,9 @@ int main(void)
|
||||
int faults;
|
||||
int ret;
|
||||
|
||||
m = sodium_malloc(mlen_max);
|
||||
c = sodium_malloc(mlen_max);
|
||||
m2 = sodium_malloc(mlen_max);
|
||||
m = (unsigned char *) sodium_malloc(mlen_max);
|
||||
c = (unsigned char *) sodium_malloc(mlen_max);
|
||||
m2 = (unsigned char *) sodium_malloc(mlen_max);
|
||||
crypto_box_keypair(alicepk, alicesk);
|
||||
crypto_box_keypair(bobpk, bobsk);
|
||||
for (mlen = 0; mlen + crypto_box_ZEROBYTES <= mlen_max; mlen++) {
|
||||
|
||||
Reference in New Issue
Block a user