]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - sha2/sha384.c
global style change (now * is attached to identifier not to type)
[avr-crypto-lib.git] / sha2 / sha384.c
index 5781dc3c32a53c72247e28f319b790205d0458d8..6a3e9a0235d478caf1523472ca30ad540c98eff5 100644 (file)
 #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_tctx){
+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){