aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-05-15 13:54:56 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2025-05-19 13:48:20 +0800
commit18c438b228558e05ede7dccf947a6547516fc0c7 (patch)
tree0ab2876dbbec47468cabea867d92275efff8c59a /crypto/testmgr.h
parentc2a813545ed4810540dcc8ebdcb21092fda80be5 (diff)
downloadnet-18c438b228558e05ede7dccf947a6547516fc0c7.tar.gz
crypto: testmgr - Add hash export format testing
Ensure that the hash state can be exported to and imported from the generic algorithm. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
-rw-r--r--crypto/testmgr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h
index 32d099ac9e7378..5cf455a708b832 100644
--- a/crypto/testmgr.h
+++ b/crypto/testmgr.h
@@ -29,6 +29,7 @@
* hash_testvec: structure to describe a hash (message digest) test
* @key: Pointer to key (NULL if none)
* @plaintext: Pointer to source data
+ * @state: Pointer to expected state
* @digest: Pointer to expected digest
* @psize: Length of source data in bytes
* @ksize: Length of @key in bytes (0 if no key)
@@ -39,6 +40,7 @@
struct hash_testvec {
const char *key;
const char *plaintext;
+ const char *state;
const char *digest;
unsigned int psize;
unsigned short ksize;