]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - shabal.h
more shabal
[avr-crypto-lib.git] / shabal.h
index 5a9f9211885f420289bbdf1a9e85b571d328286e..fab23a1f24f91239d98bbee1efb882247b548ef1 100644 (file)
--- a/shabal.h
+++ b/shabal.h
 
 typedef struct{
        union{
-       uint64_t w64;
-       uint32_t w32[2];
+               uint64_t w64;
+               uint32_t w32[2];
        } w; /* the counter */
-       uint32_t a[SHABAL_R];
        uint32_t *b;
-       uint32_t b_buffer[16];
        uint32_t *c;
+       uint32_t a[SHABAL_R];
+       uint32_t b_buffer[16];
        uint32_t c_buffer[16];
 }shabal_ctx_t;
 
@@ -70,4 +70,6 @@ void shabal256(void* dest, void* msg, uint32_t length_b);
 void shabal384(void* dest, void* msg, uint32_t length_b);
 void shabal512(void* dest, void* msg, uint32_t length_b);
 
+void shabal_ctx2hash(void* dest, const shabal_ctx_t* ctx, uint16_t outlength_b);
+
 #endif /* SHABAL_H_ */