pcrypt.c (91a71d612128f84f725022d7b7c5d5a741f6fdc7) pcrypt.c (cd900f0cacd7601dabdd028e8cbdbf2a7041cee2)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * pcrypt - Parallel crypto wrapper.
4 *
5 * Copyright (C) 2009 secunet Security Networks AG
6 * Copyright (C) 2009 Steffen Klassert <steffen.klassert@secunet.com>
7 */
8

--- 244 unchanged lines hidden (view full) ---

253 ctx->psenc = padata_alloc_shell(pencrypt);
254 if (!ctx->psenc)
255 goto out_free_inst;
256
257 ctx->psdec = padata_alloc_shell(pdecrypt);
258 if (!ctx->psdec)
259 goto out_free_psenc;
260
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * pcrypt - Parallel crypto wrapper.
4 *
5 * Copyright (C) 2009 secunet Security Networks AG
6 * Copyright (C) 2009 Steffen Klassert <steffen.klassert@secunet.com>
7 */
8

--- 244 unchanged lines hidden (view full) ---

253 ctx->psenc = padata_alloc_shell(pencrypt);
254 if (!ctx->psenc)
255 goto out_free_inst;
256
257 ctx->psdec = padata_alloc_shell(pdecrypt);
258 if (!ctx->psdec)
259 goto out_free_psenc;
260
261 crypto_set_aead_spawn(&ctx->spawn, aead_crypto_instance(inst));
262
263 err = crypto_grab_aead(&ctx->spawn, name, 0, 0);
261 err = crypto_grab_aead(&ctx->spawn, aead_crypto_instance(inst),
262 name, 0, 0);
264 if (err)
265 goto out_free_psdec;
266
267 alg = crypto_spawn_aead_alg(&ctx->spawn);
268 err = pcrypt_init_instance(aead_crypto_instance(inst), &alg->base);
269 if (err)
270 goto out_drop_aead;
271

--- 136 unchanged lines hidden ---
263 if (err)
264 goto out_free_psdec;
265
266 alg = crypto_spawn_aead_alg(&ctx->spawn);
267 err = pcrypt_init_instance(aead_crypto_instance(inst), &alg->base);
268 if (err)
269 goto out_drop_aead;
270

--- 136 unchanged lines hidden ---