blob: 89f3e164076e6c5e22ee049988eaabaabcd802da [file] [log] [blame]
#ifndef H_TE200_SHA_OPTEE_H
#define H_TE200_SHA_OPTEE_H
#define ASR_SHA_UUID \
{ \
0xc6445f2a, 0x3365, 0x11ef, \
{ 0x9e, 0x32, 0xe7, 0x0c, 0x07, 0x9f, 0x77, 0xec } \
} \
#define TEE_ALG_MD5 0x50000001
#define TEE_ALG_SHA1 0x50000002
#define TEE_ALG_SHA224 0x50000003
#define TEE_ALG_SHA256 0x50000004
#define TEE_ALG_SHA384 0x50000005
#define TEE_ALG_SHA512 0x50000006
/*
* hash init params
*
* [in] pParams[0].value.a hash algorithm type
*/
#define CMD_SHA_INIT 0x1
/*
* hash init params
*
* when input addr is physical addr:
* [in] pParams[0].value.a input data addr
* [in] pParams[0].value.b length of input data
* [in] pParams[1].value.a is physical addr
*/
#define CMD_SHA_UPDATE 0x2
/*
* hash init params
*
* [in] pParams[0].memref.buffer output hash
* [in] pParams[0].memref.size length of output hash
*/
#define CMD_SHA_FINAL 0x3
#endif