summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-08-05 09:36:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-08-05 09:36:39 +0000
commit18727399c502e098f7134bed56faaaf6e539625e (patch)
tree3f7c5208fc0d6425cd7b2431f2f1697fdd7f4f48
parent9c04f7d457e62118444b8dd38c1d6f20784bb04f (diff)
put in tags for ARC4 to please ben, who now has no excuses
-rw-r--r--sys/crypto/crypto.c3
-rw-r--r--sys/crypto/cryptodev.h6
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/crypto/crypto.c b/sys/crypto/crypto.c
index 3ebbb7f1cbe..c2f33c26886 100644
--- a/sys/crypto/crypto.c
+++ b/sys/crypto/crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto.c,v 1.25 2001/06/27 05:49:33 angelos Exp $ */
+/* $OpenBSD: crypto.c,v 1.26 2001/08/05 09:36:38 deraadt Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
@@ -487,6 +487,7 @@ crypto_check_alg(struct cryptoini *cri)
case CRYPTO_CAST_CBC:
case CRYPTO_SKIPJACK_CBC:
case CRYPTO_RIJNDAEL128_CBC:
+ case CRYPTO_ARC4:
return SYMMETRIC;
case CRYPTO_DH_SEND:
case CRYPTO_DH_RECEIVE:
diff --git a/sys/crypto/cryptodev.h b/sys/crypto/cryptodev.h
index 715d98d764d..f65f32dec22 100644
--- a/sys/crypto/cryptodev.h
+++ b/sys/crypto/cryptodev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptodev.h,v 1.11 2001/07/05 08:34:12 angelos Exp $ */
+/* $OpenBSD: cryptodev.h,v 1.12 2001/08/05 09:36:38 deraadt Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -84,7 +84,7 @@
#define CRYPTO_SHA1_KPDK 10
#define CRYPTO_RIJNDAEL128_CBC 11 /* 128 bit blocksize */
#define CRYPTO_AES_CBC 11 /* 128 bit blocksize -- the same as above */
-#define CRYPTO_ALGORITHM_MAX 18 /* Keep updated - see below */
+#define CRYPTO_ARC4 19
/* Begin public key additions */
#define CRYPTO_DH_SEND 12 /* Compute public value */
@@ -97,6 +97,8 @@
/* Compression */
#define CRYPTO_DEFLATE_COMP 18 /* Deflate compression algorithm */
+#define CRYPTO_ALGORITHM_MAX 19 /* Keep updated - see below */
+
/* Algorithm flags */
#define CRYPTO_ALG_FLAG_SUPPORTED 0x00000001 /* Algorithm is supported */
#define CRYPTO_ALG_FLAG_RNG_ENABLE 0x00000002 /* Has HW RNG for DH/DSA */