From d14739644394986cb584acb45ed9b214dff1c501 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 27 Nov 2018 08:58:46 +0100 Subject: Mise en commun du code TBC et ΘCB3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il ne devrait pas varier selon les paramètres AFAICT. --- src/constants.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/constants.h (limited to 'src/constants.h') diff --git a/src/constants.h b/src/constants.h new file mode 100644 index 0000000..a786023 --- /dev/null +++ b/src/constants.h @@ -0,0 +1,16 @@ +#ifndef CONSTANTS_H +#define CONSTANTS_H + +#include + + +/* Tweakey permutation */ +extern const uint8_t h[8]; + +/* Tweakey multiplication */ +extern const uint8_t P[6][256]; + +/* Lilliput S-box */ +extern const uint8_t S[256]; + +#endif /* CONSTANTS_H */ -- cgit v1.2.3