encrypt.h 443 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2019, Linaro Limited. All rights reserved.
  3. * Author: Sumit Garg <sumit.garg@linaro.org>
  4. *
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */
  7. #ifndef ENCRYPT_H
  8. #define ENCRYPT_H
  9. /* Supported key algorithms */
  10. enum {
  11. KEY_ALG_GCM /* AES-GCM (default) */
  12. };
  13. int encrypt_file(unsigned short fw_enc_status, int enc_alg, char *key_string,
  14. char *nonce_string, const char *ip_name, const char *op_name);
  15. #endif /* ENCRYPT_H */