From 92a33182fbf4a3476d601b0f493bcd55e493da57 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 4 Oct 2018 04:13:28 -0400 Subject: [PATCH] port chacha.h to the code style used elsewhere --- chacha.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/chacha.h b/chacha.h index 0a74233..6cfb50c 100644 --- a/chacha.h +++ b/chacha.h @@ -9,13 +9,12 @@ typedef uint8_t u8; typedef uint32_t u32; -typedef struct -{ - u32 input[16]; +typedef struct { + u32 input[16]; } chacha_ctx; -void chacha_keysetup(chacha_ctx *x,const u8 *k); -void chacha_ivsetup(chacha_ctx *x,const u8 *iv); -void chacha_keystream_bytes(chacha_ctx *x,u8 *c,u32 bytes); +void chacha_keysetup(chacha_ctx *x, const u8 *k); +void chacha_ivsetup(chacha_ctx *x, const u8 *iv); +void chacha_keystream_bytes(chacha_ctx *x, u8 *c, u32 bytes); #endif