chg: moved to header file

This commit is contained in:
iceman1001 2017-01-21 10:29:49 +01:00
commit 5e1de05ab0
2 changed files with 4 additions and 5 deletions

View file

@ -61,11 +61,6 @@
**/ **/
#include "optimized_cipher.h" #include "optimized_cipher.h"
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#define opt_T(s) (0x1 & ((s->t >> 15) ^ (s->t >> 14)^ (s->t >> 10)^ (s->t >> 8)^ (s->t >> 5)^ (s->t >> 4)^ (s->t >> 1)^ s->t)) #define opt_T(s) (0x1 & ((s->t >> 15) ^ (s->t >> 14)^ (s->t >> 10)^ (s->t >> 8)^ (s->t >> 5)^ (s->t >> 4)^ (s->t >> 1)^ s->t))

View file

@ -1,6 +1,10 @@
#ifndef OPTIMIZED_CIPHER_H #ifndef OPTIMIZED_CIPHER_H
#define OPTIMIZED_CIPHER_H #define OPTIMIZED_CIPHER_H
#include <stdint.h> #include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
/** /**
* Definition 1 (Cipher state). A cipher state of iClass s is an element of F 40/2 * Definition 1 (Cipher state). A cipher state of iClass s is an element of F 40/2