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

Lines changed: 5 additions & 5 deletions
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

Lines changed: 7 additions & 7 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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;

0 commit comments

Comments
 (0)