blob: 3cf7226de23b7d47ebfa8d7f4aad2a4af9eb40e5 [file] [log] [blame]
Ruchika Guptab9eebfa2014-10-15 11:35:30 +05301/*
2 * Copyright 2014 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 *
6 */
7
8#ifndef __JOBDESC_H
9#define __JOBDESC_H
10
11#include <common.h>
12#include <asm/io.h>
13
Ruchika Guptac5de15c2014-10-07 15:46:20 +053014#define KEY_IDNFR_SZ_BYTES 16
15
Ruchika Guptab9eebfa2014-10-15 11:35:30 +053016void inline_cnstr_jobdesc_hash(uint32_t *desc,
17 const uint8_t *msg, uint32_t msgsz, uint8_t *digest,
18 u32 alg_type, uint32_t alg_size, int sg_tbl);
19
Ruchika Guptac5de15c2014-10-07 15:46:20 +053020void inline_cnstr_jobdesc_blob_encap(uint32_t *desc, uint8_t *key_idnfr,
21 uint8_t *plain_txt, uint8_t *enc_blob,
22 uint32_t in_sz);
23
24void inline_cnstr_jobdesc_blob_decap(uint32_t *desc, uint8_t *key_idnfr,
25 uint8_t *enc_blob, uint8_t *plain_txt,
26 uint32_t out_sz);
27
28void inline_cnstr_jobdesc_rng_instantiation(uint32_t *desc);
Ruchika Guptab9eebfa2014-10-15 11:35:30 +053029#endif