crypto.h 474 B

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