summaryrefslogtreecommitdiffstats
path: root/include/linux/cryptouser.h
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2011-09-27 07:48:01 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2011-10-21 14:24:07 +0200
commit07a5fa4abd8b6965d4585d3b110f89bdf5612aff (patch)
treefdd378f220df032be3db1dbbc6622ddc13080a5f /include/linux/cryptouser.h
parent792608e9c215141fa4b870b7b2a23767a1ef12f4 (diff)
downloadop-kernel-dev-07a5fa4abd8b6965d4585d3b110f89bdf5612aff.zip
op-kernel-dev-07a5fa4abd8b6965d4585d3b110f89bdf5612aff.tar.gz
crypto: Add userspace report for cipher type algorithms
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/cryptouser.h')
-rw-r--r--include/linux/cryptouser.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/cryptouser.h b/include/linux/cryptouser.h
index ed8a40e..532fb58 100644
--- a/include/linux/cryptouser.h
+++ b/include/linux/cryptouser.h
@@ -42,6 +42,7 @@ enum crypto_attr_type_t {
CRYPTOCFGA_REPORT_AEAD, /* struct crypto_report_aead */
CRYPTOCFGA_REPORT_COMPRESS, /* struct crypto_report_comp */
CRYPTOCFGA_REPORT_RNG, /* struct crypto_report_rng */
+ CRYPTOCFGA_REPORT_CIPHER, /* struct crypto_report_cipher */
__CRYPTOCFGA_MAX
#define CRYPTOCFGA_MAX (__CRYPTOCFGA_MAX - 1)
@@ -67,6 +68,13 @@ struct crypto_report_hash {
unsigned int digestsize;
};
+struct crypto_report_cipher {
+ char type[CRYPTO_MAX_ALG_NAME];
+ unsigned int blocksize;
+ unsigned int min_keysize;
+ unsigned int max_keysize;
+};
+
struct crypto_report_blkcipher {
char type[CRYPTO_MAX_NAME];
char geniv[CRYPTO_MAX_NAME];
OpenPOWER on IntegriCloud