From 1617c4271e2064de608b1d25e4d8b49ea0b00007 Mon Sep 17 00:00:00 2001 From: hshoexer <> Date: Fri, 13 Feb 2004 10:05:44 +0000 Subject: Cleanup and shrink ACSS_KEY a bit. Thus crank library minor. Change cipher modes to more generic names and add an additional mode. ok deraadt@ markus@ --- src/lib/libcrypto/acss/acss.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/lib/libcrypto/acss/acss.h') 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 @@ -/* $OpenBSD: acss.h,v 1.2 2004/01/23 19:23:33 hshoexer Exp $ */ +/* $OpenBSD: acss.h,v 1.3 2004/02/13 10:05:44 hshoexer Exp $ */ /* * Copyright (c) 2004 The OpenBSD project * @@ -26,10 +26,10 @@ #define ACSS_KEYSIZE 5 /* modes of acss */ -#define ACSS_AUTHENTICATE 0 -#define ACSS_SESSIONKEY 1 -#define ACSS_TITLEKEY 2 -#define ACSS_DATA 3 +#define ACSS_MODE0 0 +#define ACSS_MODE1 1 +#define ACSS_MODE2 2 +#define ACSS_MODE3 3 typedef struct acss_key_st { unsigned int lfsr17; /* current state of lfsrs */ @@ -37,9 +37,8 @@ typedef struct acss_key_st { unsigned int lfsrsum; unsigned char seed[ACSS_KEYSIZE]; unsigned char data[ACSS_KEYSIZE]; - int encrypt; /* XXX make these bit flags? */ + int encrypt; int mode; - int seeded; } ACSS_KEY; void acss_setkey(ACSS_KEY *, const unsigned char *, int, int); -- cgit v1.2.3-55-g6feb