Skip to content

Commit 70170c2

Browse files
committed
Indent
1 parent 8f353b5 commit 70170c2

File tree

19 files changed

+48
-48
lines changed

19 files changed

+48
-48
lines changed

src/libsodium/crypto_box/curve25519xchacha20poly1305/box_curve25519xchacha20poly1305.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#include "utils.h"
1515

1616
int
17-
crypto_box_curve25519xchacha20poly1305_seed_keypair(unsigned char * pk,
18-
unsigned char * sk,
17+
crypto_box_curve25519xchacha20poly1305_seed_keypair(unsigned char *pk,
18+
unsigned char *sk,
1919
const unsigned char *seed)
2020
{
2121
unsigned char hash[64];
@@ -37,7 +37,7 @@ crypto_box_curve25519xchacha20poly1305_keypair(unsigned char *pk,
3737
}
3838

3939
int
40-
crypto_box_curve25519xchacha20poly1305_beforenm(unsigned char * k,
40+
crypto_box_curve25519xchacha20poly1305_beforenm(unsigned char *k,
4141
const unsigned char *pk,
4242
const unsigned char *sk)
4343
{
@@ -80,9 +80,9 @@ crypto_box_curve25519xchacha20poly1305_detached(
8080
}
8181

8282
int
83-
crypto_box_curve25519xchacha20poly1305_easy_afternm(unsigned char * c,
83+
crypto_box_curve25519xchacha20poly1305_easy_afternm(unsigned char *c,
8484
const unsigned char *m,
85-
unsigned long long mlen,
85+
unsigned long long mlen,
8686
const unsigned char *n,
8787
const unsigned char *k)
8888
{

src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include "utils.h"
1010

1111
int
12-
crypto_box_curve25519xsalsa20poly1305_seed_keypair(unsigned char * pk,
13-
unsigned char * sk,
12+
crypto_box_curve25519xsalsa20poly1305_seed_keypair(unsigned char *pk,
13+
unsigned char *sk,
1414
const unsigned char *seed)
1515
{
1616
unsigned char hash[64];
@@ -32,7 +32,7 @@ crypto_box_curve25519xsalsa20poly1305_keypair(unsigned char *pk,
3232
}
3333

3434
int
35-
crypto_box_curve25519xsalsa20poly1305_beforenm(unsigned char * k,
35+
crypto_box_curve25519xsalsa20poly1305_beforenm(unsigned char *k,
3636
const unsigned char *pk,
3737
const unsigned char *sk)
3838
{
@@ -46,19 +46,19 @@ crypto_box_curve25519xsalsa20poly1305_beforenm(unsigned char * k,
4646
}
4747

4848
int
49-
crypto_box_curve25519xsalsa20poly1305_afternm(unsigned char * c,
49+
crypto_box_curve25519xsalsa20poly1305_afternm(unsigned char *c,
5050
const unsigned char *m,
51-
unsigned long long mlen,
51+
unsigned long long mlen,
5252
const unsigned char *n,
5353
const unsigned char *k)
5454
{
5555
return crypto_secretbox_xsalsa20poly1305(c, m, mlen, n, k);
5656
}
5757

5858
int
59-
crypto_box_curve25519xsalsa20poly1305_open_afternm(unsigned char * m,
59+
crypto_box_curve25519xsalsa20poly1305_open_afternm(unsigned char *m,
6060
const unsigned char *c,
61-
unsigned long long clen,
61+
unsigned long long clen,
6262
const unsigned char *n,
6363
const unsigned char *k)
6464
{

src/libsodium/crypto_generichash/blake2b/ref/generichash_blake2b.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ crypto_generichash_blake2b_init_salt_personal(
8989

9090
int
9191
crypto_generichash_blake2b_update(crypto_generichash_blake2b_state *state,
92-
const unsigned char * in,
93-
unsigned long long inlen)
92+
const unsigned char *in,
93+
unsigned long long inlen)
9494
{
9595
return blake2b_update(state, (const uint8_t *) in, (uint64_t) inlen);
9696
}

src/libsodium/crypto_onetimeauth/poly1305/donna/poly1305_donna.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ crypto_onetimeauth_poly1305_donna(unsigned char *out, const unsigned char *m,
7171

7272
static int
7373
crypto_onetimeauth_poly1305_donna_init(crypto_onetimeauth_poly1305_state *state,
74-
const unsigned char * key)
74+
const unsigned char *key)
7575
{
7676
COMPILER_ASSERT(sizeof(crypto_onetimeauth_poly1305_state) >=
7777
sizeof(poly1305_state_internal_t));

src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ crypto_onetimeauth_poly1305_verify(const unsigned char *h,
3131

3232
int
3333
crypto_onetimeauth_poly1305_init(crypto_onetimeauth_poly1305_state *state,
34-
const unsigned char * key)
34+
const unsigned char *key)
3535
{
3636
return implementation->onetimeauth_init(state, key);
3737
}
3838

3939
int
4040
crypto_onetimeauth_poly1305_update(crypto_onetimeauth_poly1305_state *state,
41-
const unsigned char * in,
42-
unsigned long long inlen)
41+
const unsigned char *in,
42+
unsigned long long inlen)
4343
{
4444
return implementation->onetimeauth_update(state, in, inlen);
4545
}
4646

4747
int
4848
crypto_onetimeauth_poly1305_final(crypto_onetimeauth_poly1305_state *state,
49-
unsigned char * out)
49+
unsigned char *out)
5050
{
5151
return implementation->onetimeauth_final(state, out);
5252
}

src/libsodium/crypto_onetimeauth/poly1305/sse2/poly1305_sse2.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static POLY1305_NOINLINE void
109109
poly1305_init_ext(poly1305_state_internal_t *st, const unsigned char key[32],
110110
unsigned long long bytes)
111111
{
112-
uint32_t * R;
112+
uint32_t *R;
113113
uint128_t d[3];
114114
uint64_t r0, r1, r2;
115115
uint64_t rt0, rt1, rt2, st2, c;
@@ -880,7 +880,7 @@ poly1305_finish(poly1305_state_internal_t *st, unsigned char mac[16])
880880

881881
static int
882882
crypto_onetimeauth_poly1305_sse2_init(crypto_onetimeauth_poly1305_state *state,
883-
const unsigned char * key)
883+
const unsigned char *key)
884884
{
885885
COMPILER_ASSERT(sizeof(crypto_onetimeauth_poly1305_state) >=
886886
sizeof(poly1305_state_internal_t));
@@ -901,7 +901,7 @@ crypto_onetimeauth_poly1305_sse2_update(
901901

902902
static int
903903
crypto_onetimeauth_poly1305_sse2_final(crypto_onetimeauth_poly1305_state *state,
904-
unsigned char * out)
904+
unsigned char *out)
905905
{
906906
poly1305_finish((poly1305_state_internal_t *) (void *) state, out);
907907

src/libsodium/crypto_pwhash/argon2/argon2-encoding.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ from_base64(void *dst, size_t *dst_len, const char *src)
200200
static const char *
201201
decode_decimal(const char *str, unsigned long *v)
202202
{
203-
const char * orig;
204-
unsigned long acc;
203+
const char *orig;
204+
unsigned long acc;
205205

206206
acc = 0;
207207
for (orig = str;; str++) {

src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ref.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ generate_addresses(const argon2_instance_t *instance,
143143
int
144144
fill_segment_ref(const argon2_instance_t *instance, argon2_position_t position)
145145
{
146-
block * ref_block = NULL, *curr_block = NULL;
146+
block *ref_block = NULL, *curr_block = NULL;
147147
uint64_t pseudo_rand, ref_index, ref_lane;
148148
uint32_t prev_offset, curr_offset;
149149
uint32_t starting_index;

src/libsodium/crypto_pwhash/argon2/argon2-fill-block-ssse3.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ int
142142
fill_segment_ssse3(const argon2_instance_t *instance,
143143
argon2_position_t position)
144144
{
145-
block * ref_block = NULL, *curr_block = NULL;
145+
block *ref_block = NULL, *curr_block = NULL;
146146
uint64_t pseudo_rand, ref_index, ref_lane;
147147
uint32_t prev_offset, curr_offset;
148148
uint32_t starting_index, i;

src/libsodium/crypto_pwhash/argon2/argon2.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ argon2_hash(const uint32_t t_cost, const uint32_t m_cost,
9191
{
9292
argon2_context context;
9393
int result;
94-
uint8_t * out;
94+
uint8_t *out;
9595

9696
if (pwdlen > ARGON2_MAX_PWD_LENGTH) {
9797
return ARGON2_PWD_TOO_LONG;
@@ -181,7 +181,7 @@ argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen,
181181
argon2_type type)
182182
{
183183
argon2_context ctx;
184-
uint8_t * out;
184+
uint8_t *out;
185185
int decode_result;
186186
int ret;
187187
size_t encoded_len;

src/libsodium/crypto_pwhash/argon2/blake2b-long.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
int
1313
blake2b_long(void *pout, size_t outlen, const void *in, size_t inlen)
1414
{
15-
uint8_t * out = (uint8_t *) pout;
15+
uint8_t *out = (uint8_t *) pout;
1616
crypto_generichash_blake2b_state blake_state;
1717
uint8_t outlen_bytes[4 /* sizeof(uint32_t) */] = { 0 };
18-
int ret = -1;
18+
int ret = -1;
1919

2020
if (outlen > UINT32_MAX) {
2121
goto fail; /* LCOV_EXCL_LINE */

src/libsodium/crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ escrypt_r(escrypt_local_t *local, const uint8_t *passwd, size_t passwdlen,
113113
escrypt_kdf_t escrypt_kdf;
114114
const uint8_t *src;
115115
const uint8_t *salt;
116-
uint8_t * dst;
116+
uint8_t *dst;
117117
size_t prefixlen;
118118
size_t saltlen;
119119
size_t need;

src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/pwhash_scryptsalsa208sha256_nosse.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ blkxor(escrypt_block_t *dest, const escrypt_block_t *src, size_t len)
113113
static void
114114
salsa20_8(uint32_t B[16])
115115
{
116-
escrypt_block_t X;
117-
uint32_t * x = X.w;
118-
size_t i;
116+
escrypt_block_t X;
117+
uint32_t *x = X.w;
118+
size_t i;
119119

120120
blkcpy_64(&X, (escrypt_block_t *) B);
121121
for (i = 0; i < 8; i += 2) {

src/libsodium/crypto_sign/ed25519/ref10/keypair.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ crypto_sign_ed25519_keypair(unsigned char *pk, unsigned char *sk)
4242
}
4343

4444
int
45-
crypto_sign_ed25519_pk_to_curve25519(unsigned char * curve25519_pk,
45+
crypto_sign_ed25519_pk_to_curve25519(unsigned char *curve25519_pk,
4646
const unsigned char *ed25519_pk)
4747
{
4848
ge_p3 A;
@@ -64,7 +64,7 @@ crypto_sign_ed25519_pk_to_curve25519(unsigned char * curve25519_pk,
6464
}
6565

6666
int
67-
crypto_sign_ed25519_sk_to_curve25519(unsigned char * curve25519_sk,
67+
crypto_sign_ed25519_sk_to_curve25519(unsigned char *curve25519_sk,
6868
const unsigned char *ed25519_sk)
6969
{
7070
unsigned char h[crypto_hash_sha512_BYTES];

src/libsodium/crypto_sign/ed25519/ref10/obsolete.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ crypto_sign_edwards25519sha512batch_keypair(unsigned char *pk,
2828
}
2929

3030
int
31-
crypto_sign_edwards25519sha512batch(unsigned char * sm,
32-
unsigned long long * smlen_p,
31+
crypto_sign_edwards25519sha512batch(unsigned char *sm,
32+
unsigned long long *smlen_p,
3333
const unsigned char *m,
3434
unsigned long long mlen,
3535
const unsigned char *sk)
@@ -66,8 +66,8 @@ crypto_sign_edwards25519sha512batch(unsigned char * sm,
6666
}
6767

6868
int
69-
crypto_sign_edwards25519sha512batch_open(unsigned char * m,
70-
unsigned long long * mlen_p,
69+
crypto_sign_edwards25519sha512batch_open(unsigned char *m,
70+
unsigned long long *mlen_p,
7171
const unsigned char *sm,
7272
unsigned long long smlen,
7373
const unsigned char *pk)

src/libsodium/crypto_stream/aes128ctr/nacl/afternm_aes128ctr.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ crypto_stream_aes128ctr_afternm(unsigned char *out, unsigned long long len,
3232
aes_uint128_t nonce_stack;
3333
unsigned long long lensav;
3434
unsigned char bl[128];
35-
unsigned char * blp;
36-
unsigned char * np;
35+
unsigned char *blp;
36+
unsigned char *np;
3737
unsigned char b;
3838
uint32_t tmp;
3939

src/libsodium/crypto_stream/aes128ctr/nacl/int128_aes128ctr.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ copy2(aes_uint128_t *r, const aes_uint128_t *x)
3434
void
3535
shufb(aes_uint128_t *r, const unsigned char *l)
3636
{
37-
aes_uint128_t t;
38-
uint8_t * ct;
39-
uint8_t * cr;
37+
aes_uint128_t t;
38+
uint8_t *ct;
39+
uint8_t *cr;
4040

4141
copy2(&t, r);
4242
cr = r->u8;

src/libsodium/crypto_stream/aes128ctr/nacl/xor_afternm_aes128ctr.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ crypto_stream_aes128ctr_xor_afternm(unsigned char *out, const unsigned char *in,
3333
aes_uint128_t nonce_stack;
3434
unsigned long long lensav;
3535
unsigned char bl[128];
36-
unsigned char * blp;
37-
unsigned char * np;
36+
unsigned char *blp;
37+
unsigned char *np;
3838
unsigned char b;
3939
uint32_t tmp;
4040

src/libsodium/crypto_stream/chacha20/ref/chacha20_ref.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ chacha20_encrypt_bytes(chacha_ctx *ctx, const uint8_t *m, uint8_t *c,
8484
x15;
8585
uint32_t j0, j1, j2, j3, j4, j5, j6, j7, j8, j9, j10, j11, j12, j13, j14,
8686
j15;
87-
uint8_t * ctarget = NULL;
87+
uint8_t *ctarget = NULL;
8888
uint8_t tmp[64];
8989
unsigned int i;
9090

0 commit comments

Comments
 (0)