Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/opencrypto being here, export camellia-cbc through crypt...



details:   https://anonhg.NetBSD.org/src/rev/1d2963ac4d16
branches:  trunk
changeset: 765243:1d2963ac4d16
user:      drochner <drochner%NetBSD.org@localhost>
date:      Mon May 23 13:53:59 2011 +0000

description:
being here, export camellia-cbc through crypto(4) to allow userland tests

diffstat:

 sys/opencrypto/cryptodev.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 61bd456f268d -r 1d2963ac4d16 sys/opencrypto/cryptodev.c
--- a/sys/opencrypto/cryptodev.c        Mon May 23 13:51:10 2011 +0000
+++ b/sys/opencrypto/cryptodev.c        Mon May 23 13:53:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cryptodev.c,v 1.59 2011/05/23 13:51:10 drochner Exp $ */
+/*     $NetBSD: cryptodev.c,v 1.60 2011/05/23 13:53:59 drochner Exp $ */
 /*     $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $        */
 /*     $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $   */
 
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.59 2011/05/23 13:51:10 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.60 2011/05/23 13:53:59 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1521,6 +1521,9 @@
        case CRYPTO_AES_CBC:
                txform = &enc_xform_rijndael128;
                break;
+       case CRYPTO_CAMELLIA_CBC:
+               txform = &enc_xform_camellia;
+               break;
        case CRYPTO_AES_CTR:
                txform = &enc_xform_aes_ctr;
                break;



Home | Main Index | Thread Index | Old Index