aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 9cf8f3ce0e50..19ea3a371d7b 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -49,7 +49,6 @@
49#define CRYPTO_ALG_TYPE_SCOMPRESS 0x0000000b 49#define CRYPTO_ALG_TYPE_SCOMPRESS 0x0000000b
50#define CRYPTO_ALG_TYPE_RNG 0x0000000c 50#define CRYPTO_ALG_TYPE_RNG 0x0000000c
51#define CRYPTO_ALG_TYPE_AKCIPHER 0x0000000d 51#define CRYPTO_ALG_TYPE_AKCIPHER 0x0000000d
52#define CRYPTO_ALG_TYPE_DIGEST 0x0000000e
53#define CRYPTO_ALG_TYPE_HASH 0x0000000e 52#define CRYPTO_ALG_TYPE_HASH 0x0000000e
54#define CRYPTO_ALG_TYPE_SHASH 0x0000000e 53#define CRYPTO_ALG_TYPE_SHASH 0x0000000e
55#define CRYPTO_ALG_TYPE_AHASH 0x0000000f 54#define CRYPTO_ALG_TYPE_AHASH 0x0000000f
@@ -323,6 +322,17 @@ struct cipher_alg {
323 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src); 322 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
324}; 323};
325 324
325/**
326 * struct compress_alg - compression/decompression algorithm
327 * @coa_compress: Compress a buffer of specified length, storing the resulting
328 * data in the specified buffer. Return the length of the
329 * compressed data in dlen.
330 * @coa_decompress: Decompress the source buffer, storing the uncompressed
331 * data in the specified buffer. The length of the data is
332 * returned in dlen.
333 *
334 * All fields are mandatory.
335 */
326struct compress_alg { 336struct compress_alg {
327 int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src, 337 int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src,
328 unsigned int slen, u8 *dst, unsigned int *dlen); 338 unsigned int slen, u8 *dst, unsigned int *dlen);