hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/crypto/internal/akcipher.h
....@@ -1,14 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Public Key Encryption
34 *
45 * Copyright (c) 2015, Intel Corporation
56 * Authors: Tadeusz Struk <tadeusz.struk@intel.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License as published by the Free
9
- * Software Foundation; either version 2 of the License, or (at your option)
10
- * any later version.
11
- *
127 */
138 #ifndef _CRYPTO_AKCIPHER_INT_H
149 #define _CRYPTO_AKCIPHER_INT_H
....@@ -83,15 +78,9 @@
8378 return crypto_instance_ctx(akcipher_crypto_instance(inst));
8479 }
8580
86
-static inline void crypto_set_akcipher_spawn(
87
- struct crypto_akcipher_spawn *spawn,
88
- struct crypto_instance *inst)
89
-{
90
- crypto_set_spawn(&spawn->base, inst);
91
-}
92
-
93
-int crypto_grab_akcipher(struct crypto_akcipher_spawn *spawn, const char *name,
94
- u32 type, u32 mask);
81
+int crypto_grab_akcipher(struct crypto_akcipher_spawn *spawn,
82
+ struct crypto_instance *inst,
83
+ const char *name, u32 type, u32 mask);
9584
9685 static inline struct crypto_akcipher *crypto_spawn_akcipher(
9786 struct crypto_akcipher_spawn *spawn)