summaryrefslogtreecommitdiff
path: root/kernel/crypto/ChaCha20/chacha20.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-28 20:11:05 +0100
committerAnton Kling <anton@kling.gg>2023-11-28 20:12:20 +0100
commitd07fa25e04a19ccb9aa25bb6e2156d23d213db77 (patch)
tree25f2e4a6301f3ad7c5b158e74966a394862fdf39 /kernel/crypto/ChaCha20/chacha20.h
parent636858dbbd48ed9f5073793b46740302aa202f43 (diff)
Meta: Apply new clang-format rules to kernel
Diffstat (limited to 'kernel/crypto/ChaCha20/chacha20.h')
-rw-r--r--kernel/crypto/ChaCha20/chacha20.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/crypto/ChaCha20/chacha20.h b/kernel/crypto/ChaCha20/chacha20.h
index 3278783..dd4a639 100644
--- a/kernel/crypto/ChaCha20/chacha20.h
+++ b/kernel/crypto/ChaCha20/chacha20.h
@@ -3,13 +3,13 @@
#include <typedefs.h>
#define KEY 4
-#define KEY_SIZE 8*sizeof(u32)
+#define KEY_SIZE 8 * sizeof(u32)
#define COUNT 12
#define COUNT_SIZE sizeof(u32)
-#define COUNT_MAX (0x100000000-1) // 2^32 - 1
+#define COUNT_MAX (0x100000000 - 1) // 2^32 - 1
#define NONCE 13
-#define NONCE_SIZE 2*sizeof(u32)
-#define BLOCK_SIZE 16*sizeof(u32)
+#define NONCE_SIZE 2 * sizeof(u32)
+#define BLOCK_SIZE 16 * sizeof(u32)
void chacha_block(u32 out[16], u32 const in[16]);
#endif