summaryrefslogtreecommitdiff
path: root/sys/crypto/crypto.h
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-06-18 08:37:12 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-06-18 08:37:12 +0000
commit74d72d7f1b90bb3e56832335ae8e354457439c57 (patch)
treed80e225ba843860e67c14478dfbd1f8437ad2d47 /sys/crypto/crypto.h
parent44a331fe2d808b09a35b5555e033f0c1a3cf5938 (diff)
Add Rijndael (128-bit blocksize) in the software crypto driver.
Hacking at OpenBSD Crypto 2000 :-)
Diffstat (limited to 'sys/crypto/crypto.h')
-rw-r--r--sys/crypto/crypto.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/crypto/crypto.h b/sys/crypto/crypto.h
index 03718d1cca5..b1c09894c28 100644
--- a/sys/crypto/crypto.h
+++ b/sys/crypto/crypto.h
@@ -41,7 +41,8 @@
#define BLOWFISH_BLOCK_LEN 8
#define SKIPJACK_BLOCK_LEN 8
#define CAST128_BLOCK_LEN 8
-#define EALG_MAX_BLOCK_LEN 8 /* Keep this updated */
+#define RIJNDAEL128_BLOCK_LEN 16
+#define EALG_MAX_BLOCK_LEN 16 /* Keep this updated */
/* Maximum hash algorithm result length */
#define AALG_MAX_RESULT_LEN 20 /* Keep this updated */
@@ -56,8 +57,9 @@
#define CRYPTO_RIPEMD160_HMAC96 8
#define CRYPTO_MD5_KPDK 9
#define CRYPTO_SHA1_KPDK 10
+#define CRYPTO_RIJNDAEL128_CBC 11 /* 128 bit blocksize */
-#define CRYPTO_ALGORITHM_MAX 10 /* Keep this updated */
+#define CRYPTO_ALGORITHM_MAX 11 /* Keep this updated */
/* Standard initialization structure beginning */
struct cryptoini