make camellia-cbc known to the opencrypto framework
This commit is contained in:
parent
9d083d2f9c
commit
eb321d71b8
|
@ -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 */
|
||||
|
|
|
@ -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 @@ const struct enc_xform enc_xform_arc4 = {
|
|||
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",
|
||||
|
|
|
@ -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_cast5;
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue