summaryrefslogtreecommitdiff
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>2009-03-04 15:08:03 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-03-04 15:16:18 +0800
commit477f372c3f8748cb3f708aa143332b2c230018d8 (patch)
tree803ca5b5809a46da24ab0311481e17f37e60e85c /crypto/testmgr.h
parent34d730d00298ce575bce5c5bcbb02ece4dbffc55 (diff)
downloadlinux-crypto-477f372c3f8748cb3f708aa143332b2c230018d8.tar.gz
linux-crypto-477f372c3f8748cb3f708aa143332b2c230018d8.zip
crypto: testmgr - Add support for the pcomp interface
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
-rw-r--r--crypto/testmgr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 132953e1..c517e43c 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -15,6 +15,8 @@
#ifndef _CRYPTO_TESTMGR_H
#define _CRYPTO_TESTMGR_H
+#include <crypto/compress.h>
+
#define MAX_DIGEST_SIZE 64
#define MAX_TAP 8
@@ -8347,6 +8349,14 @@ struct comp_testvec {
char output[COMP_BUF_SIZE];
};
+struct pcomp_testvec {
+ void *params;
+ unsigned int paramsize;
+ int inlen, outlen;
+ char input[COMP_BUF_SIZE];
+ char output[COMP_BUF_SIZE];
+};
+
/*
* Deflate test vectors (null-terminated strings).
* Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.