Skip to content

Commit c6ec178

Browse files
degjorvarlubos
authored andcommitted
nrf_security: CRACEN: update Kconfig naming
Update CRACEN_USE_MULTIPART_WORKAROUNDS to NEED. This keeps the config naming consistent. Signed-off-by: Dag Erik Gjørvad <[email protected]>
1 parent 2973479 commit c6ec178

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

subsys/nrf_security/src/drivers/cracen/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ config CRACEN_HW_VERSION_BASE
1313
config CRACEN_HW_VERSION_LITE
1414
def_bool SOC_NRF54LM20A || SOC_NRF54LV10A
1515

16-
config CRACEN_USE_MULTIPART_WORKAROUNDS
16+
config CRACEN_NEED_MULTIPART_WORKAROUNDS
1717
def_bool SOC_NRF54LM20A
1818

1919
config CRACEN_NEED_IKG_INTERRUPT_WORKAROUND

subsys/nrf_security/src/drivers/cracen/cracenpsa/cracenpsa.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if(CONFIG_PSA_NEED_CRACEN_MAC_DRIVER)
9090
endif()
9191

9292
if(CONFIG_PSA_NEED_CRACEN_CMAC)
93-
if(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)
93+
if(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)
9494
list(APPEND cracen_driver_sources
9595
${CMAKE_CURRENT_LIST_DIR}/src/cracen_sw_mac_cmac.c
9696
)

subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_primitives.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ struct cracen_mac_operation_s {
213213
struct sxmac ctx;
214214
struct sxkeyref keyref;
215215
uint8_t key_buffer[CRACEN_MAX_AES_KEY_SIZE];
216-
#if defined(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)
216+
#if defined(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)
217217
cracen_cmac_context_t sw_ctx;
218-
#endif /* CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS */
218+
#endif /* CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS */
219219
} cmac;
220220
#endif /* PSA_NEED_CRACEN_CMAC */
221221
uint8_t _unused;

subsys/nrf_security/src/drivers/cracen/cracenpsa/src/mac.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ static psa_status_t setup(cracen_mac_operation_t *operation, const psa_key_attri
4040
}
4141
}
4242
if (IS_ENABLED(PSA_NEED_CRACEN_CMAC) &&
43-
IS_ENABLED(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)) {
43+
IS_ENABLED(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)) {
4444
if (PSA_ALG_FULL_LENGTH_MAC(alg) == PSA_ALG_CMAC) {
4545
return cracen_sw_cmac_setup(operation, attributes, key_buffer,
4646
key_buffer_size);
4747
}
4848
}
4949
if (IS_ENABLED(PSA_NEED_CRACEN_CMAC) &&
50-
!IS_ENABLED(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)) {
50+
!IS_ENABLED(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)) {
5151
if (PSA_ALG_FULL_LENGTH_MAC(alg) == PSA_ALG_CMAC) {
5252
return cracen_cmac_setup(operation, attributes, key_buffer,
5353
key_buffer_size);
@@ -91,14 +91,14 @@ psa_status_t cracen_mac_update(cracen_mac_operation_t *operation, const uint8_t
9191
}
9292
}
9393
if (IS_ENABLED(PSA_NEED_CRACEN_CMAC) &&
94-
IS_ENABLED(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)) {
94+
IS_ENABLED(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)) {
9595
if (PSA_ALG_FULL_LENGTH_MAC(operation->alg) == PSA_ALG_CMAC) {
9696
return cracen_sw_cmac_update(operation, input, input_length);
9797
}
9898
}
9999

100100
if (IS_ENABLED(PSA_NEED_CRACEN_CMAC) &&
101-
!IS_ENABLED(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)) {
101+
!IS_ENABLED(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)) {
102102
if (PSA_ALG_FULL_LENGTH_MAC(operation->alg) == PSA_ALG_CMAC) {
103103
return cracen_cmac_update(operation, input, input_length);
104104
}
@@ -130,12 +130,12 @@ psa_status_t cracen_mac_sign_finish(cracen_mac_operation_t *operation, uint8_t *
130130
}
131131
}
132132
if (IS_ENABLED(PSA_NEED_CRACEN_CMAC) &&
133-
IS_ENABLED(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)) {
133+
IS_ENABLED(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)) {
134134
if (PSA_ALG_FULL_LENGTH_MAC(operation->alg) == PSA_ALG_CMAC) {
135135
status = cracen_sw_cmac_finish(operation);
136136
}
137137
} else if (IS_ENABLED(PSA_NEED_CRACEN_CMAC) &&
138-
!IS_ENABLED(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)) {
138+
!IS_ENABLED(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)) {
139139
if (PSA_ALG_FULL_LENGTH_MAC(operation->alg) == PSA_ALG_CMAC) {
140140
status = cracen_cmac_finish(operation);
141141
}
@@ -180,12 +180,12 @@ psa_status_t cracen_mac_verify_finish(cracen_mac_operation_t *operation, const u
180180
}
181181
}
182182
if (IS_ENABLED(PSA_NEED_CRACEN_CMAC) &&
183-
IS_ENABLED(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)) {
183+
IS_ENABLED(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)) {
184184
if (PSA_ALG_FULL_LENGTH_MAC(operation->alg) == PSA_ALG_CMAC) {
185185
status = cracen_sw_cmac_finish(operation);
186186
}
187187
} else if (IS_ENABLED(PSA_NEED_CRACEN_CMAC) &&
188-
!IS_ENABLED(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS)) {
188+
!IS_ENABLED(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS)) {
189189
if (PSA_ALG_FULL_LENGTH_MAC(operation->alg) == PSA_ALG_CMAC) {
190190
status = cracen_cmac_finish(operation);
191191
}
@@ -220,7 +220,7 @@ psa_status_t cracen_mac_compute(const psa_key_attributes_t *attributes, const ui
220220
}
221221

222222
if (IS_ENABLED(PSA_NEED_CRACEN_CMAC) &&
223-
IS_ENABLED(CONFIG_CRACEN_USE_MULTIPART_WORKAROUNDS) &&
223+
IS_ENABLED(CONFIG_CRACEN_NEED_MULTIPART_WORKAROUNDS) &&
224224
PSA_ALG_FULL_LENGTH_MAC(alg) == PSA_ALG_CMAC) {
225225

226226
if (mac_size < operation.mac_size) {

0 commit comments

Comments
 (0)