Skip to content

Commit a9c801e

Browse files
Grolleau-BenjaminGrom-
authored andcommitted
[api] fix typo error
1 parent 4e94aa3 commit a9c801e

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

api/stse_data_storage.c

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
7070
stse_cmd_protection_t protection) {
7171
stse_ReturnCode_t ret = STSE_API_INVALID_PARAMETER;
7272
PLAT_UI16 remaning_length = length;
73-
PLAT_UI16 chunck_length = 0;
74-
PLAT_UI16 chunck_offset = offset;
73+
PLAT_UI16 chunk_length = 0;
74+
PLAT_UI16 chunk_offset = offset;
7575
union {
7676
stsafea_read_option_t stsafea;
7777
stsafel_read_option_t stsafel;
@@ -88,9 +88,9 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
8888
/* - Perform read by chunk */
8989
do {
9090
if ((chunk_size != 0) && (remaning_length > chunk_size)) {
91-
chunck_length = chunk_size;
91+
chunk_length = chunk_size;
9292
} else {
93-
chunck_length = remaning_length;
93+
chunk_length = remaning_length;
9494
}
9595

9696
/* - Transfer command/response */
@@ -101,9 +101,9 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
101101
pSTSE,
102102
zone,
103103
read_option.stsafel,
104-
chunck_offset,
105-
pBuffer + (chunck_offset)-offset,
106-
chunck_length,
104+
chunk_offset,
105+
pBuffer + (chunk_offset)-offset,
106+
chunk_length,
107107
protection);
108108
break;
109109
#endif /* STSE_CONF_STSAFE_L_SUPPORT */
@@ -116,9 +116,9 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
116116
pSTSE,
117117
zone,
118118
read_option.stsafea,
119-
chunck_offset,
120-
pBuffer + (chunck_offset)-offset,
121-
chunck_length,
119+
chunk_offset,
120+
pBuffer + (chunk_offset)-offset,
121+
chunk_length,
122122
protection);
123123
break;
124124
#endif /* STSE_CONF_STSAFE_A_SUPPORT */
@@ -132,8 +132,8 @@ stse_ReturnCode_t stse_data_storage_read_data_zone(
132132
}
133133

134134
/* - Decrement Length value */
135-
remaning_length = (remaning_length - chunck_length);
136-
chunck_offset = (chunck_offset + chunck_length);
135+
remaning_length = (remaning_length - chunk_length);
136+
chunk_offset = (chunk_offset + chunk_length);
137137

138138
} while (remaning_length > 0);
139139

@@ -274,8 +274,8 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
274274
stse_cmd_protection_t protection) {
275275
stse_ReturnCode_t ret = STSE_API_INVALID_PARAMETER;
276276
PLAT_UI16 remaning_length = length;
277-
PLAT_UI16 chunck_length = 0;
278-
PLAT_UI16 chunck_offset = offset;
277+
PLAT_UI16 chunk_length = 0;
278+
PLAT_UI16 chunk_offset = offset;
279279
union {
280280
stsafea_read_option_t stsafea;
281281
stsafel_read_option_t stsafel;
@@ -292,9 +292,9 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
292292
/*- Perform read by chunk */
293293
do {
294294
if ((chunk_size != 0) && (remaning_length > chunk_size)) {
295-
chunck_length = chunk_size;
295+
chunk_length = chunk_size;
296296
} else {
297-
chunck_length = remaning_length;
297+
chunk_length = remaning_length;
298298
}
299299

300300
switch (pSTSE->device_type) {
@@ -304,9 +304,9 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
304304
pSTSE,
305305
zone,
306306
read_option.stsafel,
307-
chunck_offset,
308-
pBuffer + (chunck_offset)-offset,
309-
chunck_length,
307+
chunk_offset,
308+
pBuffer + (chunk_offset)-offset,
309+
chunk_length,
310310
pCounter_value,
311311
protection);
312312
break;
@@ -320,9 +320,9 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
320320
pSTSE,
321321
zone,
322322
read_option.stsafea,
323-
chunck_offset,
324-
pBuffer + (chunck_offset)-offset,
325-
chunck_length,
323+
chunk_offset,
324+
pBuffer + (chunk_offset)-offset,
325+
chunk_length,
326326
pCounter_value,
327327
protection);
328328
break;
@@ -331,8 +331,8 @@ stse_ReturnCode_t stse_data_storage_read_counter_zone(
331331
ret = STSE_API_INCOMPATIBLE_DEVICE_TYPE;
332332
}
333333
/* - Decrement Length value */
334-
remaning_length = (remaning_length - chunck_length);
335-
chunck_offset = (chunck_offset + chunck_length);
334+
remaning_length = (remaning_length - chunk_length);
335+
chunk_offset = (chunk_offset + chunk_length);
336336
} while ((remaning_length > 0) && (ret == STSE_OK));
337337

338338
/* - Return STSAFE Status code */

api/stse_device_authentication.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ stse_ReturnCode_t stse_get_device_id(stse_Handler_t *pSTSE, PLAT_UI8 certificate
4848
STSE_CERTIFICATE_DEVICE_ID_OFFSET, /* X bytes offset */
4949
pDevice_id, /* Returned certificate size */
5050
STSE_CERTIFICATE_DEVICE_ID_SIZE, /* Certificate size length */
51-
0, /* No maximum chunck size (No chunck at all) */
51+
0, /* No maximum chunk size (No chunk at all) */
5252
STSE_NO_PROT); /* No protection */
5353

5454
return ret;
@@ -73,7 +73,7 @@ stse_ReturnCode_t stse_get_device_certificate_size(stse_Handler_t *pSTSE, PLAT_U
7373
STSE_CERTIFICATE_SIZE_OFFSET_BYTES, /* 2 bytes offset */
7474
certificate_size_ui8, /* Returned certificate size */
7575
STSE_CERTIFICATE_SIZE_LENGTH, /* Certificate size length 2 bytes */
76-
0, /* No maximum chunck size (No chunck at all) */
76+
0, /* No maximum chunk size (No chunk at all) */
7777
STSE_NO_PROT); /* No protection */
7878

7979
if (ret != STSE_OK) {
@@ -137,7 +137,7 @@ stse_ReturnCode_t stse_device_authenticate(
137137
STSE_CERTIFICATE_SIZE_OFFSET_BYTES, /* 2 bytes offset */
138138
certificate_size_ui8, /* Returned certificate size */
139139
STSE_CERTIFICATE_SIZE_LENGTH, /* Certificate size length 2 bytes */
140-
0, /* No maximum chunck size (No chunck at all) */
140+
0, /* No maximum chunk size (No chunk at all) */
141141
STSE_NO_PROT); /* No protection */
142142

143143
if (ret != STSE_OK) {

0 commit comments

Comments
 (0)