| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* PKCS#7 parser |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. |
|---|
| 4 | 5 | * 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. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #define pr_fmt(fmt) "PKCS7: "fmt |
|---|
| .. | .. |
|---|
| 271 | 267 | switch (ctx->last_oid) { |
|---|
| 272 | 268 | case OID_rsaEncryption: |
|---|
| 273 | 269 | ctx->sinfo->sig->pkey_algo = "rsa"; |
|---|
| 270 | + ctx->sinfo->sig->encoding = "pkcs1"; |
|---|
| 274 | 271 | break; |
|---|
| 275 | 272 | default: |
|---|
| 276 | 273 | printk("Unsupported pkey algo: %u\n", ctx->last_oid); |
|---|