Cross Reference: otp.h
xref
: /
dovecot
/
src
/
lib-otp
/
otp.h
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
c25356d5978632df6203437e1953bcb29e0c736f
Timo Sirainen
#
ifndef
OTP_H
c25356d5978632df6203437e1953bcb29e0c736f
Timo Sirainen
#
define
OTP_H
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
#
define
OTP_MAX_SEED_LEN
16
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
#
define
OTP_MAX_WORD_LEN
4
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
#
define
OTP_WORDS_NUMBER
6
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
#
define
OTP_HASH_SIZE
8
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
struct
otp_state
{
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
unsigned
int
algo
;
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
int
seq
;
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
unsigned
char
hash
[
OTP_HASH_SIZE
];
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
char
seed
[
OTP_MAX_SEED_LEN
+
1
];
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
};
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
#
include
"
otp-hash.h
"
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
#
include
"
otp-dictionary.h
"
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
#
include
"
otp-parity.h
"
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
#
include
"
otp-parse.h
"
e9e2d23e1ea5a149a7d8828d2a45b9f2313c3785
Timo Sirainen
c25356d5978632df6203437e1953bcb29e0c736f
Timo Sirainen
#
endif