diff options
author | Tom Rini <trini@ti.com> | 2014-10-20 18:17:26 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-10-20 18:17:26 -0400 |
commit | a84c8107d9b050fe8a31220d28588abfc2d99aee (patch) | |
tree | 03f380795c62c2af870cc837c901795c3a9e227e /drivers/crypto/fsl/jobdesc.h | |
parent | 3e780af127282e5e24fa737a5b56d7c4523a72c9 (diff) | |
parent | ba4740205d22d31da289f5b6b2f8db7d27896f40 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq
Diffstat (limited to 'drivers/crypto/fsl/jobdesc.h')
-rw-r--r-- | drivers/crypto/fsl/jobdesc.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/crypto/fsl/jobdesc.h b/drivers/crypto/fsl/jobdesc.h new file mode 100644 index 0000000000..3cf7226de2 --- /dev/null +++ b/drivers/crypto/fsl/jobdesc.h @@ -0,0 +1,29 @@ +/* + * Copyright 2014 Freescale Semiconductor, Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + * + */ + +#ifndef __JOBDESC_H +#define __JOBDESC_H + +#include <common.h> +#include <asm/io.h> + +#define KEY_IDNFR_SZ_BYTES 16 + +void inline_cnstr_jobdesc_hash(uint32_t *desc, + const uint8_t *msg, uint32_t msgsz, uint8_t *digest, + u32 alg_type, uint32_t alg_size, int sg_tbl); + +void inline_cnstr_jobdesc_blob_encap(uint32_t *desc, uint8_t *key_idnfr, + uint8_t *plain_txt, uint8_t *enc_blob, + uint32_t in_sz); + +void inline_cnstr_jobdesc_blob_decap(uint32_t *desc, uint8_t *key_idnfr, + uint8_t *enc_blob, uint8_t *plain_txt, + uint32_t out_sz); + +void inline_cnstr_jobdesc_rng_instantiation(uint32_t *desc); +#endif |