blob: 4f93df50c23e4401339bc7d9714e6bdaee62fec9 [file] [log] [blame]
Jussi Kivilinnaffaf9152012-06-18 14:06:58 +03001/*
2 * Shared async block cipher helpers
3 */
4
5#ifndef _CRYPTO_ABLK_HELPER_H
6#define _CRYPTO_ABLK_HELPER_H
7
8#include <linux/crypto.h>
9#include <linux/kernel.h>
10#include <crypto/cryptd.h>
11
12struct async_helper_ctx {
13 struct cryptd_ablkcipher *cryptd_tfm;
14};
15
16extern int ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key,
17 unsigned int key_len);
18
19extern int __ablk_encrypt(struct ablkcipher_request *req);
20
21extern int ablk_encrypt(struct ablkcipher_request *req);
22
23extern int ablk_decrypt(struct ablkcipher_request *req);
24
25extern void ablk_exit(struct crypto_tfm *tfm);
26
Jussi Kivilinnaa9629d72012-06-18 14:07:08 +030027extern int ablk_init_common(struct crypto_tfm *tfm, const char *drv_name);
28
Jussi Kivilinnaffaf9152012-06-18 14:06:58 +030029extern int ablk_init(struct crypto_tfm *tfm);
30
31#endif /* _CRYPTO_ABLK_HELPER_H */