comparison libtomcrypt/src/ciphers/safer/safer_tab.c @ 1435:f849a5ca2efc

update to libtomcrypt 1.17 (with Dropbear changes)
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Jun 2017 17:50:50 +0800
parents 0cbe8f6dbf9e
children 6dba84798cd5
comparison
equal deleted inserted replaced
1434:27b9ddb06b09 1435:f849a5ca2efc
4 * algorithms in a highly modular and flexible manner. 4 * algorithms in a highly modular and flexible manner.
5 * 5 *
6 * The library is free for all purposes without any express 6 * The library is free for all purposes without any express
7 * guarantee it works. 7 * guarantee it works.
8 * 8 *
9 * Tom St Denis, [email protected], http://libtomcrypt.com 9 * Tom St Denis, [email protected], http://libtom.org
10 */ 10 */
11 11
12 /** 12 /**
13 @file safer_tab.c 13 @file safer_tab.c
14 Tables for SAFER block ciphers 14 Tables for LTC_SAFER block ciphers
15 */ 15 */
16 16
17 #include "tomcrypt.h" 17 #include "tomcrypt.h"
18 18
19 #if defined(SAFERP) || defined(SAFER) 19 #if defined(LTC_SAFERP) || defined(LTC_SAFER)
20 20
21 /* This is the box defined by ebox[x] = 45^x mod 257. 21 /* This is the box defined by ebox[x] = 45^x mod 257.
22 * Its assumed that the value "256" corresponds to zero. */ 22 * Its assumed that the value "256" corresponds to zero. */
23 const unsigned char safer_ebox[256] = { 23 const unsigned char safer_ebox[256] = {
24 1, 45, 226, 147, 190, 69, 21, 174, 120, 3, 135, 164, 184, 56, 207, 63, 24 1, 45, 226, 147, 190, 69, 21, 174, 120, 3, 135, 164, 184, 56, 207, 63,
61 61
62 #endif 62 #endif
63 63
64 64
65 65
66 /* $Source: /cvs/libtom/libtomcrypt/src/ciphers/safer/safer_tab.c,v $ */ 66 /* $Source$ */
67 /* $Revision: 1.4 $ */ 67 /* $Revision$ */
68 /* $Date: 2006/03/31 14:15:35 $ */ 68 /* $Date$ */