grasshopper_append128(target, &subkeys->k[9]);
}
-void grasshopper_encrypt_block2(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source,
- grasshopper_w128_t* target) {
- grasshopper_w128_t buffer;
- grasshopper_encrypt_block(subkeys, source, target, &buffer);
- grasshopper_zero128(&buffer);
-}
-
void grasshopper_decrypt_block(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source,
grasshopper_w128_t* target, grasshopper_w128_t* buffer) {
int i;
grasshopper_append128(target, &subkeys->k[0]);
}
-void grasshopper_decrypt_block2(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source,
- grasshopper_w128_t* target) {
- grasshopper_w128_t buffer;
- grasshopper_decrypt_block(subkeys, source, target, &buffer);
- grasshopper_zero128(&buffer);
-}
-
#if defined(__cplusplus)
}
#endif
extern void grasshopper_encrypt_block(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, grasshopper_w128_t* target, grasshopper_w128_t* buffer);
extern void grasshopper_decrypt_block(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, grasshopper_w128_t* target, grasshopper_w128_t* buffer);
-extern void grasshopper_encrypt_block2(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, grasshopper_w128_t* target);
-extern void grasshopper_decrypt_block2(grasshopper_round_keys_t* subkeys, grasshopper_w128_t* source, grasshopper_w128_t* target);
-
#if defined(__cplusplus)
}
#endif