hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/crypto/internal/aead.h
....@@ -1,13 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * AEAD: Authenticated Encryption with Associated Data
34 *
45 * Copyright (c) 2007-2015 Herbert Xu <herbert@gondor.apana.org.au>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License as published by the Free
8
- * Software Foundation; either version 2 of the License, or (at your option)
9
- * any later version.
10
- *
116 */
127
138 #ifndef _CRYPTO_INTERNAL_AEAD_H
....@@ -86,14 +81,9 @@
8681 return container_of(req, struct aead_request, base);
8782 }
8883
89
-static inline void crypto_set_aead_spawn(
90
- struct crypto_aead_spawn *spawn, struct crypto_instance *inst)
91
-{
92
- crypto_set_spawn(&spawn->base, inst);
93
-}
94
-
95
-int crypto_grab_aead(struct crypto_aead_spawn *spawn, const char *name,
96
- u32 type, u32 mask);
84
+int crypto_grab_aead(struct crypto_aead_spawn *spawn,
85
+ struct crypto_instance *inst,
86
+ const char *name, u32 type, u32 mask);
9787
9888 static inline void crypto_drop_aead(struct crypto_aead_spawn *spawn)
9989 {
....@@ -116,16 +106,6 @@
116106 unsigned int reqsize)
117107 {
118108 aead->reqsize = reqsize;
119
-}
120
-
121
-static inline unsigned int crypto_aead_alg_maxauthsize(struct aead_alg *alg)
122
-{
123
- return alg->maxauthsize;
124
-}
125
-
126
-static inline unsigned int crypto_aead_maxauthsize(struct crypto_aead *aead)
127
-{
128
- return crypto_aead_alg_maxauthsize(crypto_aead_alg(aead));
129109 }
130110
131111 static inline void aead_init_queue(struct aead_queue *queue,