@@ -105,7 +105,7 @@ int mbedtls_md5_starts_ret( mbedtls_md5_context *ctx )
105
105
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
106
106
}
107
107
if (st_md5_save_hw_context (ctx ) != 1 ) {
108
- // Return HASH_BUSY timout error here
108
+ // Return HASH_BUSY timeout error here
109
109
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
110
110
}
111
111
@@ -115,14 +115,14 @@ int mbedtls_md5_starts_ret( mbedtls_md5_context *ctx )
115
115
int mbedtls_internal_md5_process ( mbedtls_md5_context * ctx , const unsigned char data [ST_MD5_BLOCK_SIZE ] )
116
116
{
117
117
if (st_md5_restore_hw_context (ctx ) != 1 ) {
118
- // Return HASH_BUSY timout error here
118
+ // Return HASH_BUSY timeout error here
119
119
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
120
120
}
121
121
if (HAL_HASH_MD5_Accumulate (& ctx -> hhash_md5 , (uint8_t * )data , ST_MD5_BLOCK_SIZE ) != 0 ) {
122
122
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
123
123
}
124
124
if (st_md5_save_hw_context (ctx ) != 1 ) {
125
- // Return HASH_BUSY timout error here
125
+ // Return HASH_BUSY timeout error here
126
126
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
127
127
}
128
128
return 0 ;
@@ -135,7 +135,7 @@ int mbedtls_md5_update_ret( mbedtls_md5_context *ctx, const unsigned char *input
135
135
/* If ilen = 0 : do nothing */
136
136
if (currentlen != 0 ) {
137
137
if (st_md5_restore_hw_context (ctx ) != 1 ) {
138
- // Return HASH_BUSY timout error here
138
+ // Return HASH_BUSY timeout error here
139
139
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
140
140
}
141
141
@@ -167,7 +167,7 @@ int mbedtls_md5_update_ret( mbedtls_md5_context *ctx, const unsigned char *input
167
167
}
168
168
169
169
if (st_md5_save_hw_context (ctx ) != 1 ) {
170
- // Return HASH_BUSY timout error here
170
+ // Return HASH_BUSY timeout error here
171
171
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
172
172
}
173
173
}
@@ -177,7 +177,7 @@ int mbedtls_md5_update_ret( mbedtls_md5_context *ctx, const unsigned char *input
177
177
int mbedtls_md5_finish_ret ( mbedtls_md5_context * ctx , unsigned char output [16 ] )
178
178
{
179
179
if (st_md5_restore_hw_context (ctx ) != 1 ) {
180
- // Return HASH_BUSY timout error here
180
+ // Return HASH_BUSY timeout error here
181
181
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
182
182
}
183
183
/* Last accumulation for extra bytes in sbuf_len */
@@ -194,7 +194,7 @@ int mbedtls_md5_finish_ret( mbedtls_md5_context *ctx, unsigned char output[16] )
194
194
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
195
195
}
196
196
if (st_md5_save_hw_context (ctx ) != 1 ) {
197
- // Return HASH_BUSY timout error here
197
+ // Return HASH_BUSY timeout error here
198
198
return MBEDTLS_ERR_MD5_HW_ACCEL_FAILED ;
199
199
}
200
200
return 0 ;
0 commit comments