2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2009-01-18 16:19:46 +11:00
|
|
|
/*
|
|
|
|
|
* Software async crypto daemon
|
2010-09-20 16:05:12 +08:00
|
|
|
*
|
|
|
|
|
* Added AEAD support to cryptd.
|
|
|
|
|
* Authors: Tadeusz Struk (tadeusz.struk@intel.com)
|
|
|
|
|
* Adrian Hoban <adrian.hoban@intel.com>
|
|
|
|
|
* Gabriele Paoloni <gabriele.paoloni@intel.com>
|
|
|
|
|
* Aidan O'Mahony (aidan.o.mahony@intel.com)
|
|
|
|
|
* Copyright (c) 2010, Intel Corporation.
|
2009-01-18 16:19:46 +11:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _CRYPTO_CRYPT_H
|
|
|
|
|
#define _CRYPTO_CRYPT_H
|
|
|
|
|
|
2021-12-10 16:30:09 +02:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
2015-05-11 17:48:11 +08:00
|
|
|
#include <crypto/aead.h>
|
2009-08-06 15:35:20 +10:00
|
|
|
|
2010-09-20 16:05:12 +08:00
|
|
|
struct cryptd_aead {
|
|
|
|
|
struct crypto_aead base;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static inline struct cryptd_aead *__cryptd_aead_cast(
|
|
|
|
|
struct crypto_aead *tfm)
|
|
|
|
|
{
|
|
|
|
|
return (struct cryptd_aead *)tfm;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct cryptd_aead *cryptd_alloc_aead(const char *alg_name,
|
|
|
|
|
u32 type, u32 mask);
|
|
|
|
|
|
|
|
|
|
struct crypto_aead *cryptd_aead_child(struct cryptd_aead *tfm);
|
2016-06-21 16:55:13 +08:00
|
|
|
/* Must be called without moving CPUs. */
|
|
|
|
|
bool cryptd_aead_queued(struct cryptd_aead *tfm);
|
2010-09-20 16:05:12 +08:00
|
|
|
|
|
|
|
|
void cryptd_free_aead(struct cryptd_aead *tfm);
|
|
|
|
|
|
2009-01-18 16:19:46 +11:00
|
|
|
#endif
|