From a89940d4aa89fc0a12f6cb8c0359ee16b0e6f076 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 14 Mar 2020 00:22:41 +0100 Subject: [PATCH] Reformat comments --- .../nosse/pwhash_scryptsalsa208sha256_nosse.c | 17 +++++++++-------- .../sse/pwhash_scryptsalsa208sha256_sse.c | 15 ++++++++------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c index b1f6cb45..9f5b9a5e 100644 --- a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c +++ b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c @@ -106,7 +106,7 @@ blkxor(escrypt_block_t *dest, const escrypt_block_t *src, size_t len) #endif } -/** +/* * salsa20_8(B): * Apply the salsa20/8 core to the provided block. */ @@ -168,11 +168,12 @@ salsa20_8(uint32_t B[16]) } } -/** +/* * blockmix_salsa8(Bin, Bout, X, r): - * Compute Bout = BlockMix_{salsa20/8, r}(Bin). The input Bin must be 128r - * bytes in length; the output Bout must also be the same size. The - * temporary space X must be 64 bytes. + * Compute Bout = BlockMix_{salsa20/8, r}(Bin). + * The input Bin must be 128r bytes in length; + * The output Bout must also be the same size. + * The temporary space X must be 64 bytes. */ static void blockmix_salsa8(const uint32_t *Bin, uint32_t *Bout, uint32_t *X, size_t r) @@ -207,7 +208,7 @@ blockmix_salsa8(const uint32_t *Bin, uint32_t *Bout, uint32_t *X, size_t r) } } -/** +/* * integerify(B, r): * Return the result of parsing B_{2r-1} as a little-endian integer. */ @@ -219,7 +220,7 @@ integerify(const void *B, size_t r) return ((uint64_t) (X[1]) << 32) + X[0]; } -/** +/* * smix(B, r, N, V, XY): * Compute B = SMix_r(B, N). The input B must be 128r bytes in length; * the temporary storage V must be 128rN bytes in length; the temporary @@ -282,7 +283,7 @@ smix(uint8_t *B, size_t r, uint64_t N, uint32_t *V, uint32_t *XY) } } -/** +/* * escrypt_kdf(local, passwd, passwdlen, salt, saltlen, * N, r, p, buf, buflen): * Compute scrypt(passwd[0 .. passwdlen - 1], salt[0 .. saltlen - 1], N, r, diff --git a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c index 4540e23d..4304d170 100644 --- a/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c +++ b/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c @@ -85,7 +85,7 @@ X2 = _mm_shuffle_epi32(X2, 0x4E); \ X3 = _mm_shuffle_epi32(X3, 0x93); -/** +/* * Apply the salsa20/8 core to the block provided in (X0 ... X3) ^ (Z0 ... Z3). */ # define SALSA20_8_XOR(in, out) \ @@ -103,10 +103,11 @@ (out)[3] = X3 = _mm_add_epi32(X3, Y3); \ } -/** +/* * blockmix_salsa8(Bin, Bout, r): - * Compute Bout = BlockMix_{salsa20/8, r}(Bin). The input Bin must be 128r - * bytes in length; the output Bout must also be the same size. + * Compute Bout = BlockMix_{salsa20/8, r}(Bin). + * The input Bin must be 128r bytes in length; + * the output Bout must also be the same size. */ static inline void blockmix_salsa8(const __m128i *Bin, __m128i *Bout, size_t r) @@ -208,7 +209,7 @@ blockmix_salsa8_xor(const __m128i *Bin1, const __m128i *Bin2, __m128i *Bout, # undef XOR4 # undef XOR4_2 -/** +/* * integerify(B, r): * Return the result of parsing B_{2r-1} as a little-endian integer. * Note that B's layout is permuted compared to the generic implementation. @@ -221,7 +222,7 @@ integerify(const void *B, size_t r) return *X; } -/** +/* * smix(B, r, N, V, XY): * Compute B = SMix_r(B, N). The input B must be 128r bytes in length; * the temporary storage V must be 128rN bytes in length; the temporary @@ -297,7 +298,7 @@ smix(uint8_t *B, size_t r, uint64_t N, void *V, void *XY) } } -/** +/* * escrypt_kdf(local, passwd, passwdlen, salt, saltlen, * N, r, p, buf, buflen): * Compute scrypt(passwd[0 .. passwdlen - 1], salt[0 .. saltlen - 1], N, r,