| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Public Key Encryption |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2015, Intel Corporation |
|---|
| 5 | 6 | * 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 | | - * |
|---|
| 12 | 7 | */ |
|---|
| 13 | 8 | #ifndef _CRYPTO_AKCIPHER_INT_H |
|---|
| 14 | 9 | #define _CRYPTO_AKCIPHER_INT_H |
|---|
| .. | .. |
|---|
| 83 | 78 | return crypto_instance_ctx(akcipher_crypto_instance(inst)); |
|---|
| 84 | 79 | } |
|---|
| 85 | 80 | |
|---|
| 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); |
|---|
| 95 | 84 | |
|---|
| 96 | 85 | static inline struct crypto_akcipher *crypto_spawn_akcipher( |
|---|
| 97 | 86 | struct crypto_akcipher_spawn *spawn) |
|---|