/*
 * SecBus - This file is part of SecBus
 * Copyright (C) 2012 - Telecom ParisTech
 * 
 * This file must be used under the terms of the CeCILL.
 * This source file is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at    
 * http://www.cecill.info/licences/Licence_CeCILL_V1.1-US.txt
 *
 */

#ifndef __GLOBAL_H
#define __GLOBAL_H

#define SP_SIZE_IN_WORDS      16
#define SP_SIZE_IN_BYTES      64

#define PSPE_SIZE_IN_WORDS    2
#define PSPE_SIZE_IN_BYTES    8

#define MAC_SIZE_IN_WORDS     2
#define MAC_SIZE_IN_BYTES     8

#define DES_KEY_SIZE_IN_WORDS 6
#define DES_KEY_SIZE_IN_BYTES 24

#define SIZE_256_IN_WORDS     8
#define SIZE_256_IN_BYTES     32

#define SIZE_64_IN_WORDS      2
#define SIZE_64_IN_BYTES      8

#define BLOCK_DATA_SIZE_IN_WORDS 8
#define BLOCK_DATA_SIZE_IN_BYTES 32

#define IV_SIZE_IN_WORDS 2
#define IV_SIZE_IN_BYTES 8

#define HASH_ARITY 4
#define LAST_HASH_ARITY 6

#define HS_SIZE_IN_BYTES 32
#define HS_SIZE_IN_WORDS 8

#define LAST_HS_SIZE_IN_BYTES 48
#define LAST_HS_SIZE_IN_WORDS 12

#define MAX_TREE_LEVEL 11

#define MS_SIZE_IN_BYTES 32
#define MS_SIZE_IN_WORDS 8

#define MAC_ARITY 4

#define DES_L 4

#endif
