key_gen.h 426 B

1234567891011121314151617
  1. /*
  2. * CAAM/SEC 4.x definitions for handling key-generation jobs
  3. *
  4. * Copyright 2008-2011 Freescale Semiconductor, Inc.
  5. *
  6. */
  7. struct split_key_result {
  8. struct completion completion;
  9. int err;
  10. };
  11. void split_key_done(struct device *dev, u32 *desc, u32 err, void *context);
  12. int gen_split_key(struct device *jrdev, u8 *key_out, int split_key_len,
  13. int split_key_pad_len, const u8 *key_in, u32 keylen,
  14. u32 alg_op);