aead.c (22164fbe274c2dd96d2887fe121896d321000a61) | aead.c (cd900f0cacd7601dabdd028e8cbdbf2a7041cee2) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * AEAD: Authenticated Encryption with Associated Data 4 * 5 * This file provides API support for AEAD algorithms. 6 * 7 * Copyright (c) 2007-2015 Herbert Xu <herbert@gondor.apana.org.au> 8 */ --- 193 unchanged lines hidden (view full) --- 202#endif 203 .report = crypto_aead_report, 204 .maskclear = ~CRYPTO_ALG_TYPE_MASK, 205 .maskset = CRYPTO_ALG_TYPE_MASK, 206 .type = CRYPTO_ALG_TYPE_AEAD, 207 .tfmsize = offsetof(struct crypto_aead, base), 208}; 209 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * AEAD: Authenticated Encryption with Associated Data 4 * 5 * This file provides API support for AEAD algorithms. 6 * 7 * Copyright (c) 2007-2015 Herbert Xu <herbert@gondor.apana.org.au> 8 */ --- 193 unchanged lines hidden (view full) --- 202#endif 203 .report = crypto_aead_report, 204 .maskclear = ~CRYPTO_ALG_TYPE_MASK, 205 .maskset = CRYPTO_ALG_TYPE_MASK, 206 .type = CRYPTO_ALG_TYPE_AEAD, 207 .tfmsize = offsetof(struct crypto_aead, base), 208}; 209 |
210int crypto_grab_aead(struct crypto_aead_spawn *spawn, const char *name, 211 u32 type, u32 mask) | 210int crypto_grab_aead(struct crypto_aead_spawn *spawn, 211 struct crypto_instance *inst, 212 const char *name, u32 type, u32 mask) |
212{ | 213{ |
214 spawn->base.inst = inst; |
|
213 spawn->base.frontend = &crypto_aead_type; 214 return crypto_grab_spawn(&spawn->base, name, type, mask); 215} 216EXPORT_SYMBOL_GPL(crypto_grab_aead); 217 218struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) 219{ 220 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); --- 84 unchanged lines hidden --- | 215 spawn->base.frontend = &crypto_aead_type; 216 return crypto_grab_spawn(&spawn->base, name, type, mask); 217} 218EXPORT_SYMBOL_GPL(crypto_grab_aead); 219 220struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) 221{ 222 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); --- 84 unchanged lines hidden --- |