Permutates the internal state, used after each round
(message_var_map: &HashMap<u8, StackVariable>)
| 425 | |
| 426 | /// Permutates the internal state, used after each round |
| 427 | fn permutate(message_var_map: &HashMap<u8, StackVariable>) -> HashMap<u8, StackVariable> { |
| 428 | let mut ret = HashMap::new(); |
| 429 | for i in 0..16_u8 { |
| 430 | ret.insert(i, message_var_map[&MSG_PERMUTATION[i as usize]]); |
| 431 | } |
| 432 | ret |
| 433 | } |
| 434 | |
| 435 | /// Initializes the internal state, uses the same variable names as the paper |
| 436 | fn init_state( |