idea.h 368 B

1234567891011121314151617181920
  1. #ifndef __IDEA
  2. #define __IDEA
  3. #include <stdint.h>
  4. #include "bits-set/bits.h"
  5. #define IDEA_ROUNDS 8
  6. #define IDEA_SUBKEYS 52
  7. #define IDEA_INITIAL_KEYS 8
  8. #define IDEA_DATA_BLOCK 4
  9. #define IDEA_ADD_MODULUS 65536
  10. #define IDEA_MULTIPLY_MODULUS 65537
  11. void generate_subkeys(bit_array *initial_keys, uint16_t *subkeys);
  12. void rounds(uint16_t *key, uint16_t *data);
  13. #endif