Source
1
+
// SPDX-License-Identifier: GPL-2.0-only
1
2
/*
2
3
* Copyright (C) 2011 Nokia Corporation
3
4
* Copyright (C) 2011 Intel Corporation
4
5
*
5
6
* Author:
6
7
* Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
7
8
* <dmitry.kasatkin@intel.com>
8
9
*
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
-
*
13
10
* File: sign.c
14
11
* implements signature (RSA) verification
15
12
* pkcs decoding is based on LibTomCrypt code
16
13
*/
17
14
18
15
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
19
16
20
17
#include <linux/err.h>
21
18
#include <linux/module.h>
22
19
#include <linux/slab.h>