Module Name: src
Committed By: drochner
Date: Thu May 5 17:42:17 UTC 2011
Modified Files:
src/sys/opencrypto: cryptodev.h xform.c xform.h
Log Message:
make camellia-cbc known to the opencrypto framework
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/opencrypto/cryptodev.h
cvs rdiff -u -r1.21 -r1.22 src/sys/opencrypto/xform.c
cvs rdiff -u -r1.13 -r1.14 src/sys/opencrypto/xform.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/opencrypto/cryptodev.h
diff -u src/sys/opencrypto/cryptodev.h:1.19 src/sys/opencrypto/cryptodev.h:1.20
--- src/sys/opencrypto/cryptodev.h:1.19 Fri Feb 25 20:13:10 2011
+++ src/sys/opencrypto/cryptodev.h Thu May 5 17:42:17 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: cryptodev.h,v 1.19 2011/02/25 20:13:10 drochner Exp $ */
+/* $NetBSD: cryptodev.h,v 1.20 2011/05/05 17:42:17 drochner Exp $ */
/* $FreeBSD: src/sys/opencrypto/cryptodev.h,v 1.2.2.6 2003/07/02 17:04:50 sam Exp $ */
/* $OpenBSD: cryptodev.h,v 1.33 2002/07/17 23:52:39 art Exp $ */
@@ -137,6 +137,7 @@
#define CRYPTO_DEFLATE_COMP_NOGROW 23 /* Deflate, fail if not compressible */
#define CRYPTO_SHA2_384_HMAC 24
#define CRYPTO_SHA2_512_HMAC 25
+#define CRYPTO_CAMELLIA_CBC 26
#define CRYPTO_ALGORITHM_MAX 26 /* Keep updated - see below */
/* Algorithm flags */
Index: src/sys/opencrypto/xform.c
diff -u src/sys/opencrypto/xform.c:1.21 src/sys/opencrypto/xform.c:1.22
--- src/sys/opencrypto/xform.c:1.21 Wed Mar 9 11:43:36 2011
+++ src/sys/opencrypto/xform.c Thu May 5 17:42:17 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: xform.c,v 1.21 2011/03/09 11:43:36 drochner Exp $ */
+/* $NetBSD: xform.c,v 1.22 2011/05/05 17:42:17 drochner Exp $ */
/* $FreeBSD: src/sys/opencrypto/xform.c,v 1.1.2.1 2002/11/21 23:34:23 sam Exp $ */
/* $OpenBSD: xform.c,v 1.19 2002/08/16 22:47:25 dhartmei Exp $ */
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xform.c,v 1.21 2011/03/09 11:43:36 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform.c,v 1.22 2011/05/05 17:42:17 drochner Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -130,6 +130,11 @@
1, 1, 32
};
+const struct enc_xform enc_xform_camellia = {
+ CRYPTO_CAMELLIA_CBC, "Camellia",
+ 16, 8, 32
+};
+
/* Authentication instances */
const struct auth_hash auth_hash_null = {
CRYPTO_NULL_HMAC, "NULL-HMAC",
Index: src/sys/opencrypto/xform.h
diff -u src/sys/opencrypto/xform.h:1.13 src/sys/opencrypto/xform.h:1.14
--- src/sys/opencrypto/xform.h:1.13 Wed Mar 9 11:43:36 2011
+++ src/sys/opencrypto/xform.h Thu May 5 17:42:17 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: xform.h,v 1.13 2011/03/09 11:43:36 drochner Exp $ */
+/* $NetBSD: xform.h,v 1.14 2011/05/05 17:42:17 drochner Exp $ */
/* $FreeBSD: src/sys/opencrypto/xform.h,v 1.1.2.1 2002/11/21 23:34:23 sam Exp $ */
/* $OpenBSD: xform.h,v 1.10 2002/04/22 23:10:09 deraadt Exp $ */
@@ -69,6 +69,7 @@
extern const struct enc_xform enc_xform_skipjack;
extern const struct enc_xform enc_xform_rijndael128;
extern const struct enc_xform enc_xform_arc4;
+extern const struct enc_xform enc_xform_camellia;
extern const struct auth_hash auth_hash_null;
extern const struct auth_hash auth_hash_md5;