Searched refs:SWAP64_Idx (Results 1 – 3 of 3) sorted by relevance
48 u64 idx = (ctx->shake_endian == SHAKE_LITTLE) ? ctx->shake_idx : SWAP64_Idx(ctx->shake_idx); in _shake_update()84 state[SWAP64_Idx(ctx->shake_idx)] ^= 0x1f; in _shake_finalize()85 state[SWAP64_Idx(ctx->shake_block_size - 1)] ^= 0x80; in _shake_finalize()93 output[i] = (ctx->shake_endian == SHAKE_LITTLE) ? state[i] : state[SWAP64_Idx(i)]; in _shake_finalize()
61 u64 idx = (ctx->sha3_endian == SHA3_LITTLE) ? ctx->sha3_idx : SWAP64_Idx(ctx->sha3_idx); in _sha3_update()97 state[SWAP64_Idx(ctx->sha3_idx)] ^= 0x06; in _sha3_finalize()98 state[SWAP64_Idx(ctx->sha3_block_size - 1)] ^= 0x80; in _sha3_finalize()102 output[i] = (ctx->sha3_endian == SHA3_LITTLE) ? state[i] : state[SWAP64_Idx(i)]; in _sha3_finalize()
65 #define SWAP64_Idx(a) ((sizeof(u64) * ((u8)(a) / sizeof(u64))) + (sizeof(u64) - 1 - ((u8)(a) % si… macro