.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2016 Broadcom |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License, version 2, as |
---|
6 | | - * published by the Free Software Foundation (the "GPL"). |
---|
7 | | - * |
---|
8 | | - * This program is distributed in the hope that it will be useful, but |
---|
9 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
11 | | - * General Public License version 2 (GPLv2) for more details. |
---|
12 | | - * |
---|
13 | | - * You should have received a copy of the GNU General Public License |
---|
14 | | - * version 2 (GPLv2) along with this source code. |
---|
15 | 4 | */ |
---|
16 | 5 | |
---|
17 | 6 | #ifndef _UTIL_H |
---|
.. | .. |
---|
94 | 83 | u8 from_nents, u32 tot_len); |
---|
95 | 84 | |
---|
96 | 85 | void add_to_ctr(u8 *ctr_pos, unsigned int increment); |
---|
97 | | - |
---|
98 | | -/* do a synchronous decrypt operation */ |
---|
99 | | -int do_decrypt(char *alg_name, |
---|
100 | | - void *key_ptr, unsigned int key_len, |
---|
101 | | - void *iv_ptr, void *src_ptr, void *dst_ptr, |
---|
102 | | - unsigned int block_len); |
---|
103 | 86 | |
---|
104 | 87 | /* produce a message digest from data of length n bytes */ |
---|
105 | 88 | int do_shash(unsigned char *name, unsigned char *result, |
---|