cryptd.h 650 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Software async crypto daemon
  3. */
  4. #ifndef _CRYPTO_CRYPT_H
  5. #define _CRYPTO_CRYPT_H
  6. #include <linux/crypto.h>
  7. #include <linux/kernel.h>
  8. struct cryptd_ablkcipher {
  9. struct crypto_ablkcipher base;
  10. };
  11. static inline struct cryptd_ablkcipher *__cryptd_ablkcipher_cast(
  12. struct crypto_ablkcipher *tfm)
  13. {
  14. return (struct cryptd_ablkcipher *)tfm;
  15. }
  16. /* alg_name should be algorithm to be cryptd-ed */
  17. struct cryptd_ablkcipher *cryptd_alloc_ablkcipher(const char *alg_name,
  18. u32 type, u32 mask);
  19. struct crypto_blkcipher *cryptd_ablkcipher_child(struct cryptd_ablkcipher *tfm);
  20. void cryptd_free_ablkcipher(struct cryptd_ablkcipher *tfm);
  21. #endif