aboutsummaryrefslogtreecommitdiff
path: root/src/cc20rng/cc20_prng.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-12-18 23:35:46 +0100
committerLinus Nordberg <linus@nordberg.se>2019-12-18 23:35:46 +0100
commitbef34ab8ac602d36d86b4a3f3013b89e3e2e5402 (patch)
tree49e3d625c250f18b7704ac25537e2e96f46ebcda /src/cc20rng/cc20_prng.h
parent15f056ce2278c75f7eadb3a33ffe7de6c21ab3b4 (diff)
Formatting cc20rng
Keep indentation level 2 in main.c to minimise changes.
Diffstat (limited to 'src/cc20rng/cc20_prng.h')
-rw-r--r--src/cc20rng/cc20_prng.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cc20rng/cc20_prng.h b/src/cc20rng/cc20_prng.h
index 6940f53..7b597d0 100644
--- a/src/cc20rng/cc20_prng.h
+++ b/src/cc20rng/cc20_prng.h
@@ -3,16 +3,17 @@
#include <stdint.h>
-#define CHACHA20_MAX_BLOCK_COUNTER 0xffffffff
-#define CHACHA20_NUM_WORDS 16
-#define CHACHA20_BLOCK_SIZE (CHACHA20_NUM_WORDS * 4)
+#define CHACHA20_MAX_BLOCK_COUNTER 0xffffffff
+#define CHACHA20_NUM_WORDS 16
+#define CHACHA20_BLOCK_SIZE (CHACHA20_NUM_WORDS * 4)
struct cc20_state {
uint32_t i[CHACHA20_NUM_WORDS];
};
extern void chacha20_prng_reseed(struct cc20_state *cc, uint32_t *entropy);
-extern void chacha20_prng_block(struct cc20_state *cc, uint32_t block_counter, struct cc20_state *out);
+extern void chacha20_prng_block(struct cc20_state *cc, uint32_t block_counter,
+ struct cc20_state *out);
extern int chacha20_prng_self_test();
#endif /* __STM32_CHACHA20_H */