internal.h (fa3b3565f3ac5a468e3efebca00e10db5db3d6bb) | internal.h (6cb8815f41a966b217c0d9826c592254d72dcc31) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Cryptographic API. 4 * 5 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> 6 * Copyright (c) 2005 Herbert Xu <herbert@gondor.apana.org.au> 7 */ 8#ifndef _CRYPTO_INTERNAL_H --- 4 unchanged lines hidden (view full) --- 13#include <linux/err.h> 14#include <linux/jump_label.h> 15#include <linux/list.h> 16#include <linux/module.h> 17#include <linux/notifier.h> 18#include <linux/numa.h> 19#include <linux/refcount.h> 20#include <linux/rwsem.h> | 1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Cryptographic API. 4 * 5 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> 6 * Copyright (c) 2005 Herbert Xu <herbert@gondor.apana.org.au> 7 */ 8#ifndef _CRYPTO_INTERNAL_H --- 4 unchanged lines hidden (view full) --- 13#include <linux/err.h> 14#include <linux/jump_label.h> 15#include <linux/list.h> 16#include <linux/module.h> 17#include <linux/notifier.h> 18#include <linux/numa.h> 19#include <linux/refcount.h> 20#include <linux/rwsem.h> |
21#include <linux/scatterlist.h> |
|
21#include <linux/sched.h> 22#include <linux/types.h> 23 | 22#include <linux/sched.h> 23#include <linux/types.h> 24 |
25struct akcipher_request; 26struct crypto_akcipher; |
|
24struct crypto_instance; 25struct crypto_template; 26 27struct crypto_larval { 28 struct crypto_alg alg; 29 struct crypto_alg *adult; 30 struct completion completion; 31 u32 mask; 32 bool test_started; 33}; 34 | 27struct crypto_instance; 28struct crypto_template; 29 30struct crypto_larval { 31 struct crypto_alg alg; 32 struct crypto_alg *adult; 33 struct completion completion; 34 u32 mask; 35 bool test_started; 36}; 37 |
38struct crypto_akcipher_sync_data { 39 struct crypto_akcipher *tfm; 40 const void *src; 41 void *dst; 42 unsigned int slen; 43 unsigned int dlen; 44 45 struct akcipher_request *req; 46 struct crypto_wait cwait; 47 struct scatterlist sg[2]; 48 u8 *buf; 49}; 50 |
|
35enum { 36 CRYPTOA_UNSPEC, 37 CRYPTOA_ALG, 38 CRYPTOA_TYPE, 39 __CRYPTOA_MAX, 40}; 41 42#define CRYPTOA_MAX (__CRYPTOA_MAX - 1) --- 63 unchanged lines hidden (view full) --- 106 u32 mask, gfp_t gfp); 107struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, 108 u32 mask); 109void *crypto_create_tfm_node(struct crypto_alg *alg, 110 const struct crypto_type *frontend, int node); 111void *crypto_clone_tfm(const struct crypto_type *frontend, 112 struct crypto_tfm *otfm); 113 | 51enum { 52 CRYPTOA_UNSPEC, 53 CRYPTOA_ALG, 54 CRYPTOA_TYPE, 55 __CRYPTOA_MAX, 56}; 57 58#define CRYPTOA_MAX (__CRYPTOA_MAX - 1) --- 63 unchanged lines hidden (view full) --- 122 u32 mask, gfp_t gfp); 123struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, 124 u32 mask); 125void *crypto_create_tfm_node(struct crypto_alg *alg, 126 const struct crypto_type *frontend, int node); 127void *crypto_clone_tfm(const struct crypto_type *frontend, 128 struct crypto_tfm *otfm); 129 |
130int crypto_akcipher_sync_prep(struct crypto_akcipher_sync_data *data); 131int crypto_akcipher_sync_post(struct crypto_akcipher_sync_data *data, int err); 132int crypto_init_akcipher_ops_sig(struct crypto_tfm *tfm); 133 |
|
114static inline void *crypto_create_tfm(struct crypto_alg *alg, 115 const struct crypto_type *frontend) 116{ 117 return crypto_create_tfm_node(alg, frontend, NUMA_NO_NODE); 118} 119 120struct crypto_alg *crypto_find_alg(const char *alg_name, 121 const struct crypto_type *frontend, --- 79 unchanged lines hidden --- | 134static inline void *crypto_create_tfm(struct crypto_alg *alg, 135 const struct crypto_type *frontend) 136{ 137 return crypto_create_tfm_node(alg, frontend, NUMA_NO_NODE); 138} 139 140struct crypto_alg *crypto_find_alg(const char *alg_name, 141 const struct crypto_type *frontend, --- 79 unchanged lines hidden --- |