Skip to content

Commit 2e3c500

Browse files
Vge0rgerlubos
authored andcommitted
nrf_security: Move Cracen hashdefs.h to the sxsymcrypt folder
Move the hashdefs.h header to the sxsymcrypt folder. This is done for preperation. The individual sha1/2/3 headers will be removed and combined to the hashdefs later. The hashdefs.h will have all the relevant structs and macros. Signed-off-by: Georgios Vasilakis <[email protected]>
1 parent b86bb73 commit 2e3c500

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

subsys/nrf_security/src/drivers/cracen/sxsymcrypt/src/hashdefs.h renamed to subsys/nrf_security/src/drivers/cracen/sxsymcrypt/include/sxsymcrypt/hashdefs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#define HASHDEFS_HEADER_FILE
99

1010
#include <stddef.h>
11+
#include <stdint.h>
1112

1213
struct sx_digesttags {
1314
uint32_t cfg;

subsys/nrf_security/src/drivers/cracen/sxsymcrypt/src/hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66
#include "../include/sxsymcrypt/hash.h"
7+
#include "../include/sxsymcrypt/hashdefs.h"
78
#include "../include/sxsymcrypt/sha1.h"
89
#include "../include/sxsymcrypt/sha2.h"
910
#include "../include/sxsymcrypt/sm3.h"
@@ -12,7 +13,6 @@
1213
#include "crypmasterregs.h"
1314
#include "hw.h"
1415
#include "cmdma.h"
15-
#include "hashdefs.h"
1616

1717
#define BA413_HMAC_CONF (1 << 8)
1818
#define HASH_HW_PAD (1 << 9)

subsys/nrf_security/src/drivers/cracen/sxsymcrypt/src/hmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66
#include "../include/sxsymcrypt/hash.h"
7+
#include "../include/sxsymcrypt/hashdefs.h"
78
#include "../include/sxsymcrypt/hmac.h"
89
#include <cracen/statuscodes.h>
910
#include "crypmasterregs.h"
1011
#include "hw.h"
1112
#include "cmdma.h"
12-
#include "hashdefs.h"
1313
#include "macdefs.h"
1414
#include "keyrefdefs.h"
1515

subsys/nrf_security/src/drivers/cracen/sxsymcrypt/src/sha3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66
#include "../include/sxsymcrypt/hash.h"
7+
#include "../include/sxsymcrypt/hashdefs.h"
78
#include "../include/sxsymcrypt/sha3.h"
89
#include <cracen/statuscodes.h>
910
#include "crypmasterregs.h"
1011
#include "hw.h"
1112
#include "cmdma.h"
12-
#include "hashdefs.h"
1313

1414
static const struct sx_digesttags ba418tags = {.cfg = DMATAG_BA418 | DMATAG_CONFIG(0),
1515
.initialstate = DMATAG_BA418 | DMATAG_DATATYPE(1) |

0 commit comments

Comments
 (0)