.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* ECDH key-agreement protocol |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (c) 2016, Intel Corporation |
---|
4 | 5 | * Authors: Salvator Benedetto <salvatore.benedetto@intel.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 License |
---|
8 | | - * as published by the Free Software Foundation; either version |
---|
9 | | - * 2 of the License, or (at your option) any later version. |
---|
10 | 6 | */ |
---|
11 | 7 | |
---|
12 | 8 | #include <linux/module.h> |
---|
.. | .. |
---|
130 | 126 | |
---|
131 | 127 | /* fall through */ |
---|
132 | 128 | free_all: |
---|
133 | | - kzfree(shared_secret); |
---|
| 129 | + kfree_sensitive(shared_secret); |
---|
134 | 130 | free_pubkey: |
---|
135 | 131 | kfree(public_key); |
---|
136 | 132 | return ret; |
---|
.. | .. |
---|
168 | 164 | crypto_unregister_kpp(&ecdh); |
---|
169 | 165 | } |
---|
170 | 166 | |
---|
171 | | -module_init(ecdh_init); |
---|
| 167 | +subsys_initcall(ecdh_init); |
---|
172 | 168 | module_exit(ecdh_exit); |
---|
173 | 169 | MODULE_ALIAS_CRYPTO("ecdh"); |
---|
174 | 170 | MODULE_LICENSE("GPL"); |
---|