Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Yen Lin | c3813db | 2012-04-02 13:18:48 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2011 The Chromium OS Authors. |
| 4 | * (C) Copyright 2010 - 2011 NVIDIA Corporation <www.nvidia.com> |
Yen Lin | c3813db | 2012-04-02 13:18:48 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _CRYPTO_H_ |
| 8 | #define _CRYPTO_H_ |
| 9 | |
| 10 | /** |
| 11 | * Sign a block of data |
| 12 | * |
| 13 | * \param source Source data |
| 14 | * \param length Size of source data |
| 15 | * \param signature Destination address for signature, AES_KEY_LENGTH bytes |
| 16 | */ |
| 17 | int sign_data_block(u8 *source, unsigned length, u8 *signature); |
| 18 | |
| 19 | #endif /* #ifndef _CRYPTO_H_ */ |