diff options
Diffstat (limited to 'src/lib/libcrypto/acss/acss.h')
-rw-r--r-- | src/lib/libcrypto/acss/acss.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/libcrypto/acss/acss.h b/src/lib/libcrypto/acss/acss.h index 2e33c78837..476339fb9e 100644 --- a/src/lib/libcrypto/acss/acss.h +++ b/src/lib/libcrypto/acss/acss.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: acss.h,v 1.2 2004/01/23 19:23:33 hshoexer Exp $ */ | 1 | /* $OpenBSD: acss.h,v 1.3 2004/02/13 10:05:44 hshoexer Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2004 The OpenBSD project | 3 | * Copyright (c) 2004 The OpenBSD project |
4 | * | 4 | * |
@@ -26,10 +26,10 @@ | |||
26 | #define ACSS_KEYSIZE 5 | 26 | #define ACSS_KEYSIZE 5 |
27 | 27 | ||
28 | /* modes of acss */ | 28 | /* modes of acss */ |
29 | #define ACSS_AUTHENTICATE 0 | 29 | #define ACSS_MODE0 0 |
30 | #define ACSS_SESSIONKEY 1 | 30 | #define ACSS_MODE1 1 |
31 | #define ACSS_TITLEKEY 2 | 31 | #define ACSS_MODE2 2 |
32 | #define ACSS_DATA 3 | 32 | #define ACSS_MODE3 3 |
33 | 33 | ||
34 | typedef struct acss_key_st { | 34 | typedef struct acss_key_st { |
35 | unsigned int lfsr17; /* current state of lfsrs */ | 35 | unsigned int lfsr17; /* current state of lfsrs */ |
@@ -37,9 +37,8 @@ typedef struct acss_key_st { | |||
37 | unsigned int lfsrsum; | 37 | unsigned int lfsrsum; |
38 | unsigned char seed[ACSS_KEYSIZE]; | 38 | unsigned char seed[ACSS_KEYSIZE]; |
39 | unsigned char data[ACSS_KEYSIZE]; | 39 | unsigned char data[ACSS_KEYSIZE]; |
40 | int encrypt; /* XXX make these bit flags? */ | 40 | int encrypt; |
41 | int mode; | 41 | int mode; |
42 | int seeded; | ||
43 | } ACSS_KEY; | 42 | } ACSS_KEY; |
44 | 43 | ||
45 | void acss_setkey(ACSS_KEY *, const unsigned char *, int, int); | 44 | void acss_setkey(ACSS_KEY *, const unsigned char *, int, int); |