mirror of
https://github.com/BLAKE3-team/BLAKE3
synced 2024-09-24 19:30:41 +02:00
clang-format a few files
Some of the SIMD code is still unformatted, so for now I'm only touching the files that just have a couple small changes.
This commit is contained in:
parent
8c350836b8
commit
8969cdd2f8
@ -5,9 +5,7 @@
|
||||
#include "blake3.h"
|
||||
#include "blake3_impl.h"
|
||||
|
||||
const char * blake3_version(void) {
|
||||
return BLAKE3_VERSION_STRING;
|
||||
}
|
||||
const char *blake3_version(void) { return BLAKE3_VERSION_STRING; }
|
||||
|
||||
INLINE void chunk_state_init(blake3_chunk_state *self, const uint32_t key[8],
|
||||
uint8_t flags) {
|
||||
|
@ -39,12 +39,12 @@ typedef struct {
|
||||
uint8_t cv_stack[(BLAKE3_MAX_DEPTH + 1) * BLAKE3_OUT_LEN];
|
||||
} blake3_hasher;
|
||||
|
||||
const char * blake3_version(void);
|
||||
const char *blake3_version(void);
|
||||
void blake3_hasher_init(blake3_hasher *self);
|
||||
void blake3_hasher_init_keyed(blake3_hasher *self,
|
||||
const uint8_t key[BLAKE3_KEY_LEN]);
|
||||
void blake3_hasher_init_derive_key(blake3_hasher *self, const char *context);
|
||||
void blake3_hasher_init_derive_key_raw(blake3_hasher *self, const void *context,
|
||||
void blake3_hasher_init_derive_key_raw(blake3_hasher *self, const void *context,
|
||||
size_t context_len);
|
||||
void blake3_hasher_update(blake3_hasher *self, const void *input,
|
||||
size_t input_len);
|
||||
|
4
c/main.c
4
c/main.c
@ -107,10 +107,10 @@ int main(int argc, char **argv) {
|
||||
argv += 2;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* We're going to hash the input multiple times, so we need to buffer it all.
|
||||
* This is just for test cases, so go ahead and assume that the input is less
|
||||
* than 1 MiB.
|
||||
* than 1 MiB.
|
||||
*/
|
||||
size_t buf_capacity = 1 << 20;
|
||||
uint8_t *buf = malloc(buf_capacity);
|
||||
|
Loading…
Reference in New Issue
Block a user