style: fix coding style
This commit is contained in:
parent
0d92a80e4c
commit
3289a9191d
3 changed files with 12 additions and 11 deletions
|
|
@ -4,7 +4,8 @@
|
|||
/* Forward declarations */
|
||||
static void whirlpool_pad(struct whirlpool_ctx *ctx);
|
||||
static void whirlpool_encode(const struct whirlpool_ctx *ctx, uint8_t out[64]);
|
||||
static inline void whirlpool_write_len(struct whirlpool_ctx *ctx, uint64_t bitlen);
|
||||
static inline void whirlpool_write_len(struct whirlpool_ctx *ctx, uint64_t
|
||||
bitlen);
|
||||
/* ---------------- */
|
||||
|
||||
void whirlpool_final(void *ctx, uint8_t *out)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
#include "whirlpool.h"
|
||||
#include <string.h>
|
||||
|
||||
void whirlpool_init(void *ctx)
|
||||
{
|
||||
struct whirlpool_ctx *local_ctx = ctx;
|
||||
|
||||
for (uint8_t i = 0; i < 8; ++i)
|
||||
local_ctx->state[i] = 0;
|
||||
memset(local_ctx->state, 0, sizeof(uint64_t) * 8);
|
||||
local_ctx->count = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue