clock_mix

Function clock_mix 

Source
pub fn clock_mix(message: &mut [u64; 16])
Expand description

Apply ClockMix to a 16-word (128-byte) message block.

For each word M[i] (0..15):

  1. M[i] = M[i] ⊕ ROTL(M[(i+1) mod 16], R[i])
  2. M[i] = M[i] + SBOX[M[i] & 0xFF] (wrapping addition)

Uses SIMD acceleration (AVX2) when available and the “simd” feature is enabled.

§Arguments

  • message - Mutable reference to 16 u64 words representing the message block

§Panics

This function will panic if message.len() != 16.