
#ifndef __CONFIG_H_
#define __CONFIG_H_

#ifdef __cplusplus
extern "C"
{
#endif

#define APDU_L_MAX  256

/*
 * Length of the SHA1 hash
 */
#define SHA_DIGEST_LENGTH 20

/*
 * Padding of the SHA1 hash
 */
#define SHA_DIGEST_PADDING 12

/*
 * Maximum length of user id
 */
#define VERIFIER_MAX_ID_LENGTH 16
#define USER_MAX_ID_LENGTH 16
#define AES_BLOCK_SIZE  16 // 128 bits
#define AES_IV_LENGTH   16 // 128 bits
#define NONCE_LENGTH 16

#define ERR_SECURITY 0x6982

#ifdef __cplusplus
}
#endif

#endif /* __CONFIG_H_ */
