hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/crypto/asymmetric_keys/pkcs7_parser.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* PKCS#7 parser
23 *
34 * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
45 * Written by David Howells (dhowells@redhat.com)
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public Licence
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the Licence, or (at your option) any later version.
106 */
117
128 #define pr_fmt(fmt) "PKCS7: "fmt
....@@ -271,6 +267,7 @@
271267 switch (ctx->last_oid) {
272268 case OID_rsaEncryption:
273269 ctx->sinfo->sig->pkey_algo = "rsa";
270
+ ctx->sinfo->sig->encoding = "pkcs1";
274271 break;
275272 default:
276273 printk("Unsupported pkey algo: %u\n", ctx->last_oid);