view src/lib-otp/otp.h @ 4891:6ab2712f1a93 HEAD

Only imap binary was actually working.
author Timo Sirainen <tss@iki.fi>
date Sun, 10 Dec 2006 14:35:02 +0200
parents c04189d77a59
children e4eb71ae8e96
line wrap: on
line source

#ifndef __OTP_H__
#define __OTP_H__

#define OTP_MAX_SEED_LEN	16
#define OTP_MAX_WORD_LEN	4
#define OTP_WORDS_NUMBER	6

#define OTP_HASH_SIZE		8

struct otp_state {
	unsigned int algo;
	int seq;
	unsigned char hash[OTP_HASH_SIZE];
	char seed[OTP_MAX_SEED_LEN + 1];
};

#include "otp-hash.h"
#include "otp-dictionary.h"
#include "otp-parity.h"
#include "otp-parse.h"

#endif	/* __OTP_H__ */