]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - skein/ubi.h
a lot of fixes
[avr-crypto-lib.git] / skein / ubi.h
index 14718810c9515405087d45ac0c0e89f5cf773697..3ad83cd23e4bbe5d9a17399636cd7cfaa997ad0a 100644 (file)
@@ -1,6 +1,6 @@
 /* ubi.h */
 /*
-    This file is part of the AVR-Crypto-Lib.
+    This file is part of the ARM-Crypto-Lib.
     Copyright (C) 2009  Daniel Otte (daniel.otte@rub.de)
 
     This program is free software: you can redistribute it and/or modify
 
 
 typedef struct{
-       uint8_t tweak[16];
+       union {
+               uint8_t v8[16];
+               uint16_t v16[8];
+               uint32_t v32[4];
+               uint64_t v64[2];
+       } tweak;
        uint8_t g[32];
 }ubi256_ctx_t;
 
 typedef struct{
-       uint8_t tweak[16];
+       union {
+               uint8_t v8[16];
+               uint16_t v16[8];
+               uint32_t v32[4];
+               uint64_t v64[2];
+       } tweak;
        uint8_t g[64];
 }ubi512_ctx_t;
 
 typedef struct{
-       uint8_t tweak[16];
+       union {
+               uint8_t v8[16];
+               uint16_t v16[8];
+               uint32_t v32[4];
+               uint64_t v64[2];
+       } tweak;
        uint8_t g[128];
 }ubi1024_ctx_t;