X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=skein%2Fubi.h;h=3ad83cd23e4bbe5d9a17399636cd7cfaa997ad0a;hp=14718810c9515405087d45ac0c0e89f5cf773697;hb=701cee0d98aab48dd3192c8cc7c77eb42581bc56;hpb=21bfb1fb168b3114f675f34e257b6acc557b2de8 diff --git a/skein/ubi.h b/skein/ubi.h index 1471881..3ad83cd 100644 --- a/skein/ubi.h +++ b/skein/ubi.h @@ -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 @@ -49,17 +49,32 @@ 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;