.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2011 Nokia Corporation |
---|
3 | 4 | * Copyright (C) 2011 Intel Corporation |
---|
.. | .. |
---|
5 | 6 | * Author: |
---|
6 | 7 | * Dmitry Kasatkin <dmitry.kasatkin@nokia.com> |
---|
7 | 8 | * <dmitry.kasatkin@intel.com> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License as published by |
---|
11 | | - * the Free Software Foundation, version 2 of the License. |
---|
12 | 9 | * |
---|
13 | 10 | * File: sign.c |
---|
14 | 11 | * implements signature (RSA) verification |
---|
.. | .. |
---|
221 | 218 | /* search in specific keyring */ |
---|
222 | 219 | key_ref_t kref; |
---|
223 | 220 | kref = keyring_search(make_key_ref(keyring, 1UL), |
---|
224 | | - &key_type_user, name); |
---|
| 221 | + &key_type_user, name, true); |
---|
225 | 222 | if (IS_ERR(kref)) |
---|
226 | 223 | key = ERR_CAST(kref); |
---|
227 | 224 | else |
---|
.. | .. |
---|
240 | 237 | goto err; |
---|
241 | 238 | |
---|
242 | 239 | desc->tfm = shash; |
---|
243 | | - desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP; |
---|
244 | 240 | |
---|
245 | 241 | crypto_shash_init(desc); |
---|
246 | 242 | crypto_shash_update(desc, data, datalen); |
---|