hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/lib/digsig.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2011 Nokia Corporation
34 * Copyright (C) 2011 Intel Corporation
....@@ -5,10 +6,6 @@
56 * Author:
67 * Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
78 * <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.
129 *
1310 * File: sign.c
1411 * implements signature (RSA) verification
....@@ -221,7 +218,7 @@
221218 /* search in specific keyring */
222219 key_ref_t kref;
223220 kref = keyring_search(make_key_ref(keyring, 1UL),
224
- &key_type_user, name);
221
+ &key_type_user, name, true);
225222 if (IS_ERR(kref))
226223 key = ERR_CAST(kref);
227224 else
....@@ -240,7 +237,6 @@
240237 goto err;
241238
242239 desc->tfm = shash;
243
- desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
244240
245241 crypto_shash_init(desc);
246242 crypto_shash_update(desc, data, datalen);