]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - shacal1/shacal1_enc.c
[ecdsa] some progress but still unfinished
[avr-crypto-lib.git] / shacal1 / shacal1_enc.c
index 62e5cd4785358926331778f8e35818329a0a2f4b..87e5d456d52690269623fe3246ba751cbc527937 100644 (file)
@@ -28,7 +28,7 @@
 
 #include <stdint.h>
 #include <string.h>
-#include "sha1/sha1.h"
+#include "sha1.h"
 #include "shacal1_enc.h"
 
 void shacal1_enc(void* buffer, void* key, uint16_t keysize_b){
@@ -43,7 +43,7 @@ void shacal1_enc(void* buffer, void* key, uint16_t keysize_b){
        memcpy(keybuffer, key, (keysize_b+7)/8);
        
        memcpy(t_ctx.h, buffer, SHA1_HASH_BITS/8);
-       sha1_ctx2hash((sha1_hash_t*)(&(ctx.h[0])), &t_ctx);
+       sha1_ctx2hash(&ctx.h[0], &t_ctx);
        memcpy(t_ctx.h, ctx.h, SHA1_HASH_BITS/8);
        sha1_nextBlock(&ctx, keybuffer);
        for(i=0; i<5; ++i)