From c21c7eb3f7b2a079333ff6e63ff510e47f7b229a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 22 Apr 2013 11:50:20 -0700 Subject: [PATCH] indent --- .../ref/before_curve25519xsalsa20poly1305.c | 4 +++- .../crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c b/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c index 5bf8bb88..6925673f 100644 --- a/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c +++ b/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c @@ -2,7 +2,9 @@ #include "crypto_core_hsalsa20.h" #include "crypto_scalarmult_curve25519.h" -static const unsigned char sigma[16] = "expand 32-byte k"; +static const unsigned char sigma[16] = { + 'e', 'x', 'p', 'a', 'n', 'd', ' ', '3', '2', '-', 'b', 'y', 't', 'e', 'k' +}; static const unsigned char n[16] = {0}; int crypto_box_beforenm( diff --git a/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c b/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c index deb03526..b76584b7 100644 --- a/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c +++ b/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305_try.c @@ -26,9 +26,9 @@ static unsigned char *k2, *k2_; static int allocate(void) { - h = _sodium_alignedcalloc(&h_, crypto_onetimeauth_BYTES); - m = _sodium_alignedcalloc(&m_, MAXTEST_BYTES); - k = _sodium_alignedcalloc(&k_, crypto_onetimeauth_KEYBYTES); + h = _sodium_alignedcalloc(&h_, crypto_onetimeauth_BYTES); + m = _sodium_alignedcalloc(&m_, MAXTEST_BYTES); + k = _sodium_alignedcalloc(&k_, crypto_onetimeauth_KEYBYTES); h2 = _sodium_alignedcalloc(&h2_, crypto_onetimeauth_BYTES); m2 = _sodium_alignedcalloc(&m2_, MAXTEST_BYTES + crypto_onetimeauth_BYTES); k2 = _sodium_alignedcalloc(&k2_, crypto_onetimeauth_KEYBYTES +