2 * Scatterlist Cryptographic API.
4 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
5 * Copyright (c) 2002 David S. Miller (davem@redhat.com)
6 * Copyright (c) 2005 Herbert Xu <herbert@gondor.apana.org.au>
8 * Portions derived from Cryptoapi, by Alexander Kjeldaas <astor@fast.no>
9 * and Nettle, by Niels Möller.
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the Free
13 * Software Foundation; either version 2 of the License, or (at your option)
17 #ifndef _LINUX_CRYPTO_H
18 #define _LINUX_CRYPTO_H
20 #include <linux/kernel.h>
21 #include <linux/list.h>
22 #include <linux/slab.h>
24 #define CRYPTO_MINALIGN ARCH_KMALLOC_MINALIGN
25 #define CRYPTO_MINALIGN_ATTR __attribute__ ((__aligned__(CRYPTO_MINALIGN)))
30 struct list_head cra_list;
33 const struct crypto_type *cra_type;
35 void * (*alloc_tfm)(void);
36 } CRYPTO_MINALIGN_ATTR;
38 int crypto_register_alg(struct crypto_alg *alg);
41 struct crypto_alg *alg;
44 #endif /* _LINUX_CRYPTO_H */