Skip to content

Commit 2b8b110

Browse files
authored
Merge pull request #21321 from mguetschow/cc310-file-macros
pkg/driver_cryptocell_310: replace deprecated RIOT_FILE_RELATIVE
2 parents 4ad7df0 + ed278a4 commit 2b8b110

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

pkg/driver_cryptocell_310/psa_cryptocell_310/aes_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ psa_status_t cryptocell_310_common_aes_setup(SaSiAesUserContext_t *ctx,
4242

4343
if (!cryptocell_310_data_within_ram(iv) ||
4444
!cryptocell_310_data_within_ram(key_buffer)) {
45-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
45+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
4646
return PSA_ERROR_DATA_INVALID;
4747
}
4848

@@ -84,7 +84,7 @@ psa_status_t cryptocell_310_common_aes_encrypt_decrypt(SaSiAesUserContext_t *ctx
8484
*output_length = output_size;
8585

8686
if (!cryptocell_310_data_within_ram(input)) {
87-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
87+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
8888
return PSA_ERROR_DATA_INVALID;
8989
}
9090

pkg/driver_cryptocell_310/psa_cryptocell_310/cipher_chacha20.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ psa_status_t psa_cipher_chacha20_encrypt(uint8_t *key_buffer,
4343
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
4444

4545
if (!cryptocell_310_data_within_ram(input)) {
46-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
46+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
4747
return PSA_ERROR_DATA_INVALID;
4848
}
4949

@@ -91,7 +91,7 @@ psa_status_t psa_cipher_chacha20_decrypt(uint8_t *key_buffer,
9191
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
9292

9393
if (!cryptocell_310_data_within_ram(input)) {
94-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
94+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
9595
return PSA_ERROR_DATA_INVALID;
9696
}
9797

pkg/driver_cryptocell_310/psa_cryptocell_310/ecc_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ psa_status_t cryptocell_310_common_ecc_sign(const uint8_t *priv_key,
8787

8888
if (!cryptocell_310_data_within_ram(priv_key) ||
8989
!cryptocell_310_data_within_ram(input)) {
90-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
90+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
9191
return PSA_ERROR_DATA_INVALID;
9292
}
9393

@@ -131,7 +131,7 @@ psa_status_t cryptocell_310_common_ecc_verify(const uint8_t *pub_key,
131131
if (!cryptocell_310_data_within_ram(pub_key) ||
132132
!cryptocell_310_data_within_ram(input) ||
133133
!cryptocell_310_data_within_ram(signature)) {
134-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
134+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
135135
return PSA_ERROR_DATA_INVALID;
136136
}
137137

pkg/driver_cryptocell_310/psa_cryptocell_310/ecc_ed25519.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ psa_status_t psa_derive_ecc_ed25519_public_key( const uint8_t *priv_key_buffer,
6868
CRYSError_t ret;
6969

7070
if (!cryptocell_310_data_within_ram(priv_key_buffer)) {
71-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
71+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
7272
return PSA_ERROR_DATA_INVALID;
7373
}
7474

@@ -108,7 +108,7 @@ psa_status_t psa_ecc_ed25519_sign_message(const uint8_t *priv_key_buffer,
108108
if (!cryptocell_310_data_within_ram(priv_key_buffer) ||
109109
!cryptocell_310_data_within_ram(pub_key_buffer) ||
110110
!cryptocell_310_data_within_ram(input)) {
111-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
111+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
112112
return PSA_ERROR_DATA_INVALID;
113113
}
114114

@@ -155,7 +155,7 @@ psa_status_t psa_ecc_ed25519_verify_message(const uint8_t *key_buffer,
155155
if (!cryptocell_310_data_within_ram(key_buffer) ||
156156
!cryptocell_310_data_within_ram(input) ||
157157
!cryptocell_310_data_within_ram(signature)) {
158-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
158+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
159159
return PSA_ERROR_DATA_INVALID;
160160
}
161161

pkg/driver_cryptocell_310/psa_cryptocell_310/hmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ psa_status_t psa_mac_compute_hmac_sha256(const psa_key_attributes_t *attributes,
4343

4444
if (!cryptocell_310_data_within_ram(key_buffer) ||
4545
!cryptocell_310_data_within_ram(input)) {
46-
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", RIOT_FILE_RELATIVE);
46+
DEBUG("%s : cryptocell_310 data required to be in RAM.\n", __FILE__);
4747
return PSA_ERROR_DATA_INVALID;
4848
}
4949

0 commit comments

Comments
 (0)