X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=sha2%2Fsha384.c;fp=sha2%2Fsha384.c;h=6a3e9a0235d478caf1523472ca30ad540c98eff5;hp=5781dc3c32a53c72247e28f319b790205d0458d8;hb=3a9f9d918fb95474996af535c225a7e187d88372;hpb=33d65e8032f77c1cbec1bc99e898affc96966c3c diff --git a/sha2/sha384.c b/sha2/sha384.c index 5781dc3..6a3e9a0 100644 --- a/sha2/sha384.c +++ b/sha2/sha384.c @@ -25,11 +25,11 @@ #include "sha384.h" -void sha384_nextBlock (sha384_ctx_t* ctx, const void* block){ +void sha384_nextBlock (sha384_ctx_t *ctx, const void *block){ sha2_large_common_nextBlock(ctx, block); } -void sha384_lastBlock(sha384_ctx_t* ctx, const void* block, uint16_t length_b){ +void sha384_lastBlock(sha384_ctx_t *ctx, const void *block, uint16_t length_b){ sha2_large_common_lastBlock(ctx, block, length_b); } @@ -40,12 +40,12 @@ uint64_t sha384_init_values[8] PROGMEM = { }; -void sha384_init(sha384_ctx_t* ctx){ +void sha384_init(sha384_ctx_t *ctx){ ctx->length = 0; memcpy_P(ctx->h, sha384_init_values, 8*8); } -void sha384_ctx2hash(void* dest, const sha384_ctx_t* ctx){ +void sha384_ctx2hash(void *dest, const sha384_ctx_t *ctx){ uint8_t i=6, j, *s = (uint8_t*)(ctx->h); do{ j=7; @@ -58,7 +58,7 @@ void sha384_ctx2hash(void* dest, const sha384_ctx_t* ctx){ } -void sha384(void* dest, const void* msg, uint32_t length_b){ +void sha384(void *dest, const void *msg, uint32_t length_b){ sha384_ctx_t ctx; sha384_init(&ctx); while(length_b >= 1024){