key_gen.h 453 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * CAAM/SEC 4.x definitions for handling key-generation jobs
  4. *
  5. * Copyright 2008-2011 Freescale Semiconductor, Inc.
  6. *
  7. */
  8. struct split_key_result {
  9. struct completion completion;
  10. int err;
  11. };
  12. void split_key_done(struct device *dev, u32 *desc, u32 err, void *context);
  13. int gen_split_key(struct device *jrdev, u8 *key_out,
  14. struct alginfo * const adata, const u8 *key_in, u32 keylen,
  15. int max_keylen);