crypto.h 474 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2011 The Chromium OS Authors.
  4. * (C) Copyright 2010 - 2011 NVIDIA Corporation <www.nvidia.com>
  5. */
  6. #ifndef _CRYPTO_H_
  7. #define _CRYPTO_H_
  8. /**
  9. * Sign a block of data
  10. *
  11. * \param source Source data
  12. * \param length Size of source data
  13. * \param signature Destination address for signature, AES_KEY_LENGTH bytes
  14. */
  15. int sign_data_block(u8 *source, unsigned length, u8 *signature);
  16. #endif /* #ifndef _CRYPTO_H_ */