summaryrefslogtreecommitdiffstats
path: root/include/crypto/ablk_helper.h
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-12-18 18:24:24 +0100
committerMark Brown <broonie@linaro.org>2013-12-18 18:24:41 +0100
commitd1c8b1bd093cb57860fb6446e096e1c1cda92d4d (patch)
tree9c93ddf1ced6064a7f75a3f8a3691d09e624edb9 /include/crypto/ablk_helper.h
parentregulator: s5m8767: Do not use sec_reg* regmap helpers (diff)
parentmfd: s2mps11: Fix build after regmap field rename in sec-core.c (diff)
downloadlinux-d1c8b1bd093cb57860fb6446e096e1c1cda92d4d.tar.xz
linux-d1c8b1bd093cb57860fb6446e096e1c1cda92d4d.zip
Merge tag 's2mps11-build' into regulator-s5m8767 since a following patch
depend on it. regulator/clk: Fix s2mps11 build This patch fixes a build failure that appeared in v3.13-rc4 due to an RTC/MFD update merged via -mm.
Diffstat (limited to 'include/crypto/ablk_helper.h')
-rw-r--r--include/crypto/ablk_helper.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/crypto/ablk_helper.h b/include/crypto/ablk_helper.h
new file mode 100644
index 000000000000..4f93df50c23e
--- /dev/null
+++ b/include/crypto/ablk_helper.h
@@ -0,0 +1,31 @@
+/*
+ * Shared async block cipher helpers
+ */
+
+#ifndef _CRYPTO_ABLK_HELPER_H
+#define _CRYPTO_ABLK_HELPER_H
+
+#include <linux/crypto.h>
+#include <linux/kernel.h>
+#include <crypto/cryptd.h>
+
+struct async_helper_ctx {
+ struct cryptd_ablkcipher *cryptd_tfm;
+};
+
+extern int ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key,
+ unsigned int key_len);
+
+extern int __ablk_encrypt(struct ablkcipher_request *req);
+
+extern int ablk_encrypt(struct ablkcipher_request *req);
+
+extern int ablk_decrypt(struct ablkcipher_request *req);
+
+extern void ablk_exit(struct crypto_tfm *tfm);
+
+extern int ablk_init_common(struct crypto_tfm *tfm, const char *drv_name);
+
+extern int ablk_init(struct crypto_tfm *tfm);
+
+#endif /* _CRYPTO_ABLK_HELPER_H */