1eda14cbcSMatt Macy /* 2eda14cbcSMatt Macy * Internal definitions for Skein hashing. 3eda14cbcSMatt Macy * Source code author: Doug Whiting, 2008. 4eda14cbcSMatt Macy * This algorithm and source code is released to the public domain. 5eda14cbcSMatt Macy * 6eda14cbcSMatt Macy * The following compile-time switches may be defined to control some 7eda14cbcSMatt Macy * tradeoffs between speed, code size, error checking, and security. 8eda14cbcSMatt Macy * 9eda14cbcSMatt Macy * The "default" note explains what happens when the switch is not defined. 10eda14cbcSMatt Macy * 11eda14cbcSMatt Macy * SKEIN_DEBUG -- make callouts from inside Skein code 12eda14cbcSMatt Macy * to examine/display intermediate values. 13eda14cbcSMatt Macy * [default: no callouts (no overhead)] 14eda14cbcSMatt Macy * 15eda14cbcSMatt Macy * SKEIN_ERR_CHECK -- how error checking is handled inside Skein 16eda14cbcSMatt Macy * code. If not defined, most error checking 17eda14cbcSMatt Macy * is disabled (for performance). Otherwise, 18eda14cbcSMatt Macy * the switch value is interpreted as: 19eda14cbcSMatt Macy * 0: use assert() to flag errors 20eda14cbcSMatt Macy * 1: return SKEIN_FAIL to flag errors 21eda14cbcSMatt Macy */ 22eda14cbcSMatt Macy /* Copyright 2013 Doug Whiting. This code is released to the public domain. */ 23eda14cbcSMatt Macy 24eda14cbcSMatt Macy #ifndef _SKEIN_IMPL_H_ 25eda14cbcSMatt Macy #define _SKEIN_IMPL_H_ 26eda14cbcSMatt Macy 27eda14cbcSMatt Macy #include <sys/skein.h> 28*da5137abSMartin Matuska #include <sys/string.h> 29eda14cbcSMatt Macy #include "skein_impl.h" 30eda14cbcSMatt Macy #include "skein_port.h" 31eda14cbcSMatt Macy 32eda14cbcSMatt Macy /* 33eda14cbcSMatt Macy * "Internal" Skein definitions 34eda14cbcSMatt Macy * -- not needed for sequential hashing API, but will be 35eda14cbcSMatt Macy * helpful for other uses of Skein (e.g., tree hash mode). 36eda14cbcSMatt Macy * -- included here so that they can be shared between 37eda14cbcSMatt Macy * reference and optimized code. 38eda14cbcSMatt Macy */ 39eda14cbcSMatt Macy 40eda14cbcSMatt Macy /* tweak word T[1]: bit field starting positions */ 41eda14cbcSMatt Macy /* offset 64 because it's the second word */ 42eda14cbcSMatt Macy #define SKEIN_T1_BIT(BIT) ((BIT) - 64) 43eda14cbcSMatt Macy 44eda14cbcSMatt Macy /* bits 112..118: level in hash tree */ 45eda14cbcSMatt Macy #define SKEIN_T1_POS_TREE_LVL SKEIN_T1_BIT(112) 46eda14cbcSMatt Macy /* bit 119: partial final input byte */ 47eda14cbcSMatt Macy #define SKEIN_T1_POS_BIT_PAD SKEIN_T1_BIT(119) 48eda14cbcSMatt Macy /* bits 120..125: type field */ 49eda14cbcSMatt Macy #define SKEIN_T1_POS_BLK_TYPE SKEIN_T1_BIT(120) 50eda14cbcSMatt Macy /* bits 126: first block flag */ 51eda14cbcSMatt Macy #define SKEIN_T1_POS_FIRST SKEIN_T1_BIT(126) 52eda14cbcSMatt Macy /* bit 127: final block flag */ 53eda14cbcSMatt Macy #define SKEIN_T1_POS_FINAL SKEIN_T1_BIT(127) 54eda14cbcSMatt Macy 55eda14cbcSMatt Macy /* tweak word T[1]: flag bit definition(s) */ 56eda14cbcSMatt Macy #define SKEIN_T1_FLAG_FIRST (((uint64_t)1) << SKEIN_T1_POS_FIRST) 57eda14cbcSMatt Macy #define SKEIN_T1_FLAG_FINAL (((uint64_t)1) << SKEIN_T1_POS_FINAL) 58eda14cbcSMatt Macy #define SKEIN_T1_FLAG_BIT_PAD (((uint64_t)1) << SKEIN_T1_POS_BIT_PAD) 59eda14cbcSMatt Macy 60eda14cbcSMatt Macy /* tweak word T[1]: tree level bit field mask */ 61eda14cbcSMatt Macy #define SKEIN_T1_TREE_LVL_MASK (((uint64_t)0x7F) << SKEIN_T1_POS_TREE_LVL) 62eda14cbcSMatt Macy #define SKEIN_T1_TREE_LEVEL(n) (((uint64_t)(n)) << SKEIN_T1_POS_TREE_LVL) 63eda14cbcSMatt Macy 64eda14cbcSMatt Macy /* tweak word T[1]: block type field */ 65eda14cbcSMatt Macy #define SKEIN_BLK_TYPE_KEY (0) /* key, for MAC and KDF */ 66eda14cbcSMatt Macy #define SKEIN_BLK_TYPE_CFG (4) /* configuration block */ 67eda14cbcSMatt Macy #define SKEIN_BLK_TYPE_PERS (8) /* personalization string */ 68eda14cbcSMatt Macy #define SKEIN_BLK_TYPE_PK (12) /* public key (for signature hashing) */ 69eda14cbcSMatt Macy #define SKEIN_BLK_TYPE_KDF (16) /* key identifier for KDF */ 70eda14cbcSMatt Macy #define SKEIN_BLK_TYPE_NONCE (20) /* nonce for PRNG */ 71eda14cbcSMatt Macy #define SKEIN_BLK_TYPE_MSG (48) /* message processing */ 72eda14cbcSMatt Macy #define SKEIN_BLK_TYPE_OUT (63) /* output stage */ 73eda14cbcSMatt Macy #define SKEIN_BLK_TYPE_MASK (63) /* bit field mask */ 74eda14cbcSMatt Macy 75eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE(T) \ 76eda14cbcSMatt Macy (((uint64_t)(SKEIN_BLK_TYPE_##T)) << SKEIN_T1_POS_BLK_TYPE) 77eda14cbcSMatt Macy /* key, for MAC and KDF */ 78eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_KEY SKEIN_T1_BLK_TYPE(KEY) 79eda14cbcSMatt Macy /* configuration block */ 80eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_CFG SKEIN_T1_BLK_TYPE(CFG) 81eda14cbcSMatt Macy /* personalization string */ 82eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_PERS SKEIN_T1_BLK_TYPE(PERS) 83eda14cbcSMatt Macy /* public key (for digital signature hashing) */ 84eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_PK SKEIN_T1_BLK_TYPE(PK) 85eda14cbcSMatt Macy /* key identifier for KDF */ 86eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_KDF SKEIN_T1_BLK_TYPE(KDF) 87eda14cbcSMatt Macy /* nonce for PRNG */ 88eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_NONCE SKEIN_T1_BLK_TYPE(NONCE) 89eda14cbcSMatt Macy /* message processing */ 90eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_MSG SKEIN_T1_BLK_TYPE(MSG) 91eda14cbcSMatt Macy /* output stage */ 92eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_OUT SKEIN_T1_BLK_TYPE(OUT) 93eda14cbcSMatt Macy /* field bit mask */ 94eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_MASK SKEIN_T1_BLK_TYPE(MASK) 95eda14cbcSMatt Macy 96eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_CFG_FINAL \ 97eda14cbcSMatt Macy (SKEIN_T1_BLK_TYPE_CFG | SKEIN_T1_FLAG_FINAL) 98eda14cbcSMatt Macy #define SKEIN_T1_BLK_TYPE_OUT_FINAL \ 99eda14cbcSMatt Macy (SKEIN_T1_BLK_TYPE_OUT | SKEIN_T1_FLAG_FINAL) 100eda14cbcSMatt Macy 101eda14cbcSMatt Macy #define SKEIN_VERSION (1) 102eda14cbcSMatt Macy 103eda14cbcSMatt Macy #ifndef SKEIN_ID_STRING_LE /* allow compile-time personalization */ 104eda14cbcSMatt Macy #define SKEIN_ID_STRING_LE (0x33414853) /* "SHA3" (little-endian) */ 105eda14cbcSMatt Macy #endif 106eda14cbcSMatt Macy 107eda14cbcSMatt Macy #define SKEIN_MK_64(hi32, lo32) ((lo32) + (((uint64_t)(hi32)) << 32)) 108eda14cbcSMatt Macy #define SKEIN_SCHEMA_VER SKEIN_MK_64(SKEIN_VERSION, SKEIN_ID_STRING_LE) 109eda14cbcSMatt Macy #define SKEIN_KS_PARITY SKEIN_MK_64(0x1BD11BDA, 0xA9FC1A22) 110eda14cbcSMatt Macy 111eda14cbcSMatt Macy #define SKEIN_CFG_STR_LEN (4*8) 112eda14cbcSMatt Macy 113eda14cbcSMatt Macy /* bit field definitions in config block treeInfo word */ 114eda14cbcSMatt Macy #define SKEIN_CFG_TREE_LEAF_SIZE_POS (0) 115eda14cbcSMatt Macy #define SKEIN_CFG_TREE_NODE_SIZE_POS (8) 116eda14cbcSMatt Macy #define SKEIN_CFG_TREE_MAX_LEVEL_POS (16) 117eda14cbcSMatt Macy 118eda14cbcSMatt Macy #define SKEIN_CFG_TREE_LEAF_SIZE_MSK \ 119eda14cbcSMatt Macy (((uint64_t)0xFF) << SKEIN_CFG_TREE_LEAF_SIZE_POS) 120eda14cbcSMatt Macy #define SKEIN_CFG_TREE_NODE_SIZE_MSK \ 121eda14cbcSMatt Macy (((uint64_t)0xFF) << SKEIN_CFG_TREE_NODE_SIZE_POS) 122eda14cbcSMatt Macy #define SKEIN_CFG_TREE_MAX_LEVEL_MSK \ 123eda14cbcSMatt Macy (((uint64_t)0xFF) << SKEIN_CFG_TREE_MAX_LEVEL_POS) 124eda14cbcSMatt Macy 125eda14cbcSMatt Macy #define SKEIN_CFG_TREE_INFO(leaf, node, maxLvl) \ 126eda14cbcSMatt Macy ((((uint64_t)(leaf)) << SKEIN_CFG_TREE_LEAF_SIZE_POS) | \ 127eda14cbcSMatt Macy (((uint64_t)(node)) << SKEIN_CFG_TREE_NODE_SIZE_POS) | \ 128eda14cbcSMatt Macy (((uint64_t)(maxLvl)) << SKEIN_CFG_TREE_MAX_LEVEL_POS)) 129eda14cbcSMatt Macy 130eda14cbcSMatt Macy /* use as treeInfo in InitExt() call for sequential processing */ 131eda14cbcSMatt Macy #define SKEIN_CFG_TREE_INFO_SEQUENTIAL SKEIN_CFG_TREE_INFO(0, 0, 0) 132eda14cbcSMatt Macy 133eda14cbcSMatt Macy /* 134eda14cbcSMatt Macy * Skein macros for getting/setting tweak words, etc. 135eda14cbcSMatt Macy * These are useful for partial input bytes, hash tree init/update, etc. 136eda14cbcSMatt Macy */ 137eda14cbcSMatt Macy #define Skein_Get_Tweak(ctxPtr, TWK_NUM) ((ctxPtr)->h.T[TWK_NUM]) 138eda14cbcSMatt Macy #define Skein_Set_Tweak(ctxPtr, TWK_NUM, tVal) \ 139eda14cbcSMatt Macy do { \ 140eda14cbcSMatt Macy (ctxPtr)->h.T[TWK_NUM] = (tVal); \ 141eda14cbcSMatt Macy } while (0) 142eda14cbcSMatt Macy 143eda14cbcSMatt Macy #define Skein_Get_T0(ctxPtr) Skein_Get_Tweak(ctxPtr, 0) 144eda14cbcSMatt Macy #define Skein_Get_T1(ctxPtr) Skein_Get_Tweak(ctxPtr, 1) 145eda14cbcSMatt Macy #define Skein_Set_T0(ctxPtr, T0) Skein_Set_Tweak(ctxPtr, 0, T0) 146eda14cbcSMatt Macy #define Skein_Set_T1(ctxPtr, T1) Skein_Set_Tweak(ctxPtr, 1, T1) 147eda14cbcSMatt Macy 148eda14cbcSMatt Macy /* set both tweak words at once */ 149eda14cbcSMatt Macy #define Skein_Set_T0_T1(ctxPtr, T0, T1) \ 150eda14cbcSMatt Macy do { \ 151eda14cbcSMatt Macy Skein_Set_T0(ctxPtr, (T0)); \ 152eda14cbcSMatt Macy Skein_Set_T1(ctxPtr, (T1)); \ 153eda14cbcSMatt Macy } while (0) 154eda14cbcSMatt Macy 155eda14cbcSMatt Macy #define Skein_Set_Type(ctxPtr, BLK_TYPE) \ 156eda14cbcSMatt Macy Skein_Set_T1(ctxPtr, SKEIN_T1_BLK_TYPE_##BLK_TYPE) 157eda14cbcSMatt Macy 158eda14cbcSMatt Macy /* 159eda14cbcSMatt Macy * set up for starting with a new type: h.T[0]=0; h.T[1] = NEW_TYPE; h.bCnt=0; 160eda14cbcSMatt Macy */ 161eda14cbcSMatt Macy #define Skein_Start_New_Type(ctxPtr, BLK_TYPE) \ 162eda14cbcSMatt Macy do { \ 163eda14cbcSMatt Macy Skein_Set_T0_T1(ctxPtr, 0, SKEIN_T1_FLAG_FIRST | \ 164eda14cbcSMatt Macy SKEIN_T1_BLK_TYPE_ ## BLK_TYPE); \ 165eda14cbcSMatt Macy (ctxPtr)->h.bCnt = 0; \ 166eda14cbcSMatt Macy } while (0) 167eda14cbcSMatt Macy 168eda14cbcSMatt Macy #define Skein_Clear_First_Flag(hdr) \ 169eda14cbcSMatt Macy do { \ 170eda14cbcSMatt Macy (hdr).T[1] &= ~SKEIN_T1_FLAG_FIRST; \ 171eda14cbcSMatt Macy } while (0) 172eda14cbcSMatt Macy #define Skein_Set_Bit_Pad_Flag(hdr) \ 173eda14cbcSMatt Macy do { \ 174eda14cbcSMatt Macy (hdr).T[1] |= SKEIN_T1_FLAG_BIT_PAD; \ 175eda14cbcSMatt Macy } while (0) 176eda14cbcSMatt Macy 177eda14cbcSMatt Macy #define Skein_Set_Tree_Level(hdr, height) \ 178eda14cbcSMatt Macy do { \ 179eda14cbcSMatt Macy (hdr).T[1] |= SKEIN_T1_TREE_LEVEL(height); \ 180eda14cbcSMatt Macy } while (0) 181eda14cbcSMatt Macy 182eda14cbcSMatt Macy /* 183eda14cbcSMatt Macy * "Internal" Skein definitions for debugging and error checking 184eda14cbcSMatt Macy * Note: in Illumos we always disable debugging features. 185eda14cbcSMatt Macy */ 186eda14cbcSMatt Macy #define Skein_Show_Block(bits, ctx, X, blkPtr, wPtr, ksEvenPtr, ksOddPtr) 187eda14cbcSMatt Macy #define Skein_Show_Round(bits, ctx, r, X) 188eda14cbcSMatt Macy #define Skein_Show_R_Ptr(bits, ctx, r, X_ptr) 189eda14cbcSMatt Macy #define Skein_Show_Final(bits, ctx, cnt, outPtr) 190eda14cbcSMatt Macy #define Skein_Show_Key(bits, ctx, key, keyBytes) 191eda14cbcSMatt Macy 192eda14cbcSMatt Macy /* run-time checks (e.g., bad params, uninitialized context)? */ 193eda14cbcSMatt Macy #ifndef SKEIN_ERR_CHECK 194eda14cbcSMatt Macy /* default: ignore all Asserts, for performance */ 195eda14cbcSMatt Macy #define Skein_Assert(x, retCode) 196eda14cbcSMatt Macy #define Skein_assert(x) 197eda14cbcSMatt Macy #elif defined(SKEIN_ASSERT) 198eda14cbcSMatt Macy #include <sys/debug.h> 199eda14cbcSMatt Macy #define Skein_Assert(x, retCode) ASSERT(x) 200eda14cbcSMatt Macy #define Skein_assert(x) ASSERT(x) 201eda14cbcSMatt Macy #else 202eda14cbcSMatt Macy #include <sys/debug.h> 203eda14cbcSMatt Macy /* caller error */ 204eda14cbcSMatt Macy #define Skein_Assert(x, retCode) \ 205eda14cbcSMatt Macy do { \ 206eda14cbcSMatt Macy if (!(x)) \ 207eda14cbcSMatt Macy return (retCode); \ 208eda14cbcSMatt Macy } while (0) 209eda14cbcSMatt Macy /* internal error */ 210eda14cbcSMatt Macy #define Skein_assert(x) ASSERT(x) 211eda14cbcSMatt Macy #endif 212eda14cbcSMatt Macy 213eda14cbcSMatt Macy /* 214eda14cbcSMatt Macy * Skein block function constants (shared across Ref and Opt code) 215eda14cbcSMatt Macy */ 216eda14cbcSMatt Macy enum { 217eda14cbcSMatt Macy /* Skein_256 round rotation constants */ 218eda14cbcSMatt Macy R_256_0_0 = 14, R_256_0_1 = 16, 219eda14cbcSMatt Macy R_256_1_0 = 52, R_256_1_1 = 57, 220eda14cbcSMatt Macy R_256_2_0 = 23, R_256_2_1 = 40, 221eda14cbcSMatt Macy R_256_3_0 = 5, R_256_3_1 = 37, 222eda14cbcSMatt Macy R_256_4_0 = 25, R_256_4_1 = 33, 223eda14cbcSMatt Macy R_256_5_0 = 46, R_256_5_1 = 12, 224eda14cbcSMatt Macy R_256_6_0 = 58, R_256_6_1 = 22, 225eda14cbcSMatt Macy R_256_7_0 = 32, R_256_7_1 = 32, 226eda14cbcSMatt Macy 227eda14cbcSMatt Macy /* Skein_512 round rotation constants */ 228eda14cbcSMatt Macy R_512_0_0 = 46, R_512_0_1 = 36, R_512_0_2 = 19, R_512_0_3 = 37, 229eda14cbcSMatt Macy R_512_1_0 = 33, R_512_1_1 = 27, R_512_1_2 = 14, R_512_1_3 = 42, 230eda14cbcSMatt Macy R_512_2_0 = 17, R_512_2_1 = 49, R_512_2_2 = 36, R_512_2_3 = 39, 231eda14cbcSMatt Macy R_512_3_0 = 44, R_512_3_1 = 9, R_512_3_2 = 54, R_512_3_3 = 56, 232eda14cbcSMatt Macy R_512_4_0 = 39, R_512_4_1 = 30, R_512_4_2 = 34, R_512_4_3 = 24, 233eda14cbcSMatt Macy R_512_5_0 = 13, R_512_5_1 = 50, R_512_5_2 = 10, R_512_5_3 = 17, 234eda14cbcSMatt Macy R_512_6_0 = 25, R_512_6_1 = 29, R_512_6_2 = 39, R_512_6_3 = 43, 235eda14cbcSMatt Macy R_512_7_0 = 8, R_512_7_1 = 35, R_512_7_2 = 56, R_512_7_3 = 22, 236eda14cbcSMatt Macy 237eda14cbcSMatt Macy /* Skein1024 round rotation constants */ 238eda14cbcSMatt Macy R1024_0_0 = 24, R1024_0_1 = 13, R1024_0_2 = 8, R1024_0_3 = 239eda14cbcSMatt Macy 47, R1024_0_4 = 8, R1024_0_5 = 17, R1024_0_6 = 22, R1024_0_7 = 37, 240eda14cbcSMatt Macy R1024_1_0 = 38, R1024_1_1 = 19, R1024_1_2 = 10, R1024_1_3 = 241eda14cbcSMatt Macy 55, R1024_1_4 = 49, R1024_1_5 = 18, R1024_1_6 = 23, R1024_1_7 = 52, 242eda14cbcSMatt Macy R1024_2_0 = 33, R1024_2_1 = 4, R1024_2_2 = 51, R1024_2_3 = 243eda14cbcSMatt Macy 13, R1024_2_4 = 34, R1024_2_5 = 41, R1024_2_6 = 59, R1024_2_7 = 17, 244eda14cbcSMatt Macy R1024_3_0 = 5, R1024_3_1 = 20, R1024_3_2 = 48, R1024_3_3 = 245eda14cbcSMatt Macy 41, R1024_3_4 = 47, R1024_3_5 = 28, R1024_3_6 = 16, R1024_3_7 = 25, 246eda14cbcSMatt Macy R1024_4_0 = 41, R1024_4_1 = 9, R1024_4_2 = 37, R1024_4_3 = 247eda14cbcSMatt Macy 31, R1024_4_4 = 12, R1024_4_5 = 47, R1024_4_6 = 44, R1024_4_7 = 30, 248eda14cbcSMatt Macy R1024_5_0 = 16, R1024_5_1 = 34, R1024_5_2 = 56, R1024_5_3 = 249eda14cbcSMatt Macy 51, R1024_5_4 = 4, R1024_5_5 = 53, R1024_5_6 = 42, R1024_5_7 = 41, 250eda14cbcSMatt Macy R1024_6_0 = 31, R1024_6_1 = 44, R1024_6_2 = 47, R1024_6_3 = 251eda14cbcSMatt Macy 46, R1024_6_4 = 19, R1024_6_5 = 42, R1024_6_6 = 44, R1024_6_7 = 25, 252eda14cbcSMatt Macy R1024_7_0 = 9, R1024_7_1 = 48, R1024_7_2 = 35, R1024_7_3 = 253eda14cbcSMatt Macy 52, R1024_7_4 = 23, R1024_7_5 = 31, R1024_7_6 = 37, R1024_7_7 = 20 254eda14cbcSMatt Macy }; 255eda14cbcSMatt Macy 256eda14cbcSMatt Macy /* number of rounds for the different block sizes */ 257eda14cbcSMatt Macy #define SKEIN_256_ROUNDS_TOTAL (72) 258eda14cbcSMatt Macy #define SKEIN_512_ROUNDS_TOTAL (72) 259eda14cbcSMatt Macy #define SKEIN1024_ROUNDS_TOTAL (80) 260eda14cbcSMatt Macy 261eda14cbcSMatt Macy 262eda14cbcSMatt Macy extern const uint64_t SKEIN_256_IV_128[]; 263eda14cbcSMatt Macy extern const uint64_t SKEIN_256_IV_160[]; 264eda14cbcSMatt Macy extern const uint64_t SKEIN_256_IV_224[]; 265eda14cbcSMatt Macy extern const uint64_t SKEIN_256_IV_256[]; 266eda14cbcSMatt Macy extern const uint64_t SKEIN_512_IV_224[]; 267eda14cbcSMatt Macy extern const uint64_t SKEIN_512_IV_256[]; 268eda14cbcSMatt Macy extern const uint64_t SKEIN_512_IV_384[]; 269eda14cbcSMatt Macy extern const uint64_t SKEIN_512_IV_512[]; 270eda14cbcSMatt Macy extern const uint64_t SKEIN1024_IV_384[]; 271eda14cbcSMatt Macy extern const uint64_t SKEIN1024_IV_512[]; 272eda14cbcSMatt Macy extern const uint64_t SKEIN1024_IV_1024[]; 273eda14cbcSMatt Macy 274eda14cbcSMatt Macy /* Functions to process blkCnt (nonzero) full block(s) of data. */ 275eda14cbcSMatt Macy void Skein_256_Process_Block(Skein_256_Ctxt_t *ctx, const uint8_t *blkPtr, 276eda14cbcSMatt Macy size_t blkCnt, size_t byteCntAdd); 277eda14cbcSMatt Macy void Skein_512_Process_Block(Skein_512_Ctxt_t *ctx, const uint8_t *blkPtr, 278eda14cbcSMatt Macy size_t blkCnt, size_t byteCntAdd); 279eda14cbcSMatt Macy void Skein1024_Process_Block(Skein1024_Ctxt_t *ctx, const uint8_t *blkPtr, 280eda14cbcSMatt Macy size_t blkCnt, size_t byteCntAdd); 281eda14cbcSMatt Macy 282eda14cbcSMatt Macy #endif /* _SKEIN_IMPL_H_ */ 283