blob: d41921855bc50955c73c9502df15bac7282a704e [file] [log] [blame]
Soby Mathew1ae83bc2017-05-10 11:48:40 +01001/*
2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef _CC_SEC_DEFS_H
8#define _CC_SEC_DEFS_H
9
10/*!
11@file
12@brief This file contains general hash definitions and types.
13*/
14
15
16#ifdef __cplusplus
17extern "C"
18{
19#endif
20
21/*! The hashblock size in words. */
22#define HASH_BLOCK_SIZE_IN_WORDS 16
23/*! The hash - SHA2 results in words. */
24#define HASH_RESULT_SIZE_IN_WORDS 8
25#define HASH_RESULT_SIZE_IN_BYTES 32
26
27/*! Definition for hash result array. */
28typedef uint32_t CCHashResult_t[HASH_RESULT_SIZE_IN_WORDS];
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif