4343 * \details This service format and send encrypt command in AES ECB mode
4444 * \param[in] pSTSE Pointer to STSE Handler
4545 * \param[in] slot_number Key slot in symmetric key table to be used
46- * \param[in] message_length Length of the message
46+ * \param[in] message_length Length of the message<br>
47+ * message_length maximum value (in bytes):
48+ * - STSAFE-A110 : STSAFEA_MAX_FRAME_LENGTH_A110 - 5
49+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 5
4750 * \param[in] pPlaintext_message Plaintext message to encrypt
4851 * \param[out] pEncrypted_message Encrypted message
4952 * \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
@@ -60,7 +63,10 @@ stse_ReturnCode_t stsafea_aes_ecb_encrypt(
6063 * \details This service format and send decrypt command in AES ECB mode
6164 * \param[in] pSTSE Pointer to STSE Handler
6265 * \param[in] slot_number Key slot in symmetric key table to be used
63- * \param[in] message_length Length of the message
66+ * \param[in] message_length Length of the message<br>
67+ * message_length maximum value (in bytes):
68+ * - STSAFE-A110 : STSAFEA_MAX_FRAME_LENGTH_A110 - 5
69+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 5
6470 * \param[in] pEncrypted_message Encrypted message to decrypt
6571 * \param[out] pPlaintext_message Plaintext message
6672 * \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
@@ -81,7 +87,10 @@ stse_ReturnCode_t stsafea_aes_ecb_decrypt(
8187 * \param[in] pNonce Buffer containing the nonce
8288 * \param[in] associated_data_length Length of the associated data
8389 * \param[in] pAssociated_data Buffer containing associated data
84- * \param[in] message_length Length of the message to encrypt
90+ * \param[in] message_length Length of the message to encrypt<br>
91+ * message_length maximum value (in bytes):
92+ * - STSAFE-A110 : STSAFEA_MAX_FRAME_LENGTH_A110 - 22 - associated_data_length
93+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 22 - associated_data_length
8594 * \param[in] pPlaintext_message Buffer containing the message to encrypt
8695 * \param[out] pEncrypted_message Buffer to store the encrypted message
8796 * \param[out] pEncrypted_authentication_tag Buffer to store the authentication tag
@@ -114,7 +123,9 @@ stse_ReturnCode_t stsafea_aes_ccm_encrypt(
114123 * \param[in] total_message_length Length of the complete message to be encrypted by chunks
115124 * \param[in] associated_data_chunk_length Length of the associated data chunk
116125 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
117- * \param[in] message_chunk_length Length of the message chunk to encrypt
126+ * \param[in] message_chunk_length Length of the message chunk to encrypt<br>
127+ * message_chunk_length maximum value (in bytes):
128+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 17 - Nonce_length - associated_data_chunk_length
118129 * \param[in] pPlaintext_message_chunk Buffer containing 1st piece of plaintext message chunk to encrypt
119130 * \param[out] pEncrypted_message_chunk Buffer to store the encrypted message chunk
120131 * \param[out] pCounter_presence Counter presence flag
@@ -142,7 +153,9 @@ stse_ReturnCode_t stsafea_aes_ccm_encrypt_start(
142153 * \param[in] pSTSE Pointer to STSE Handler
143154 * \param[in] associated_data_chunk_length Length of the associated data chunk
144155 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
145- * \param[in] message_chunk_length Length of the message chunk to encrypt
156+ * \param[in] message_chunk_length Length of the message chunk to encrypt<br>
157+ * message_chunk_length maximum value (in bytes):
158+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 8 - associated_data_chunk_length
146159 * \param[in] pPlaintext_message_chunk Buffer containing the message chunk to encrypt
147160 * \param[out] pEncrypted_message_chunk Buffer to store the encrypted message chunk
148161 * \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
@@ -162,7 +175,9 @@ stse_ReturnCode_t stsafea_aes_ccm_encrypt_process(
162175 * \param[in] authentication_tag_length Length of the output authentication tag
163176 * \param[in] associated_data_chunk_length Length of the associated data chunk
164177 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
165- * \param[in] message_chunk_length Length of the message chunk to encrypt
178+ * \param[in] message_chunk_length Length of the message chunk to encrypt<br>
179+ * message_chunk_length maximum value (in bytes):
180+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 8 - associated_data_chunk_length
166181 * \param[in] pPlaintext_message_chunk Buffer containing the message chunk to encrypt
167182 * \param[out] pEncrypted_message_chunk Buffer to store the encrypted message chunk
168183 * \param[out] pEncrypted_authentication_tag Encrypted authentication tag
@@ -187,7 +202,10 @@ stse_ReturnCode_t stsafea_aes_ccm_encrypt_finish(
187202 * \param[in] pNonce Buffer containing the nonce
188203 * \param[in] associated_data_length Length of the associated data
189204 * \param[in] pAssociated_data Buffer containing associated data
190- * \param[in] message_length Length of the message to encrypt
205+ * \param[in] message_length Length of the message to encrypt<br>
206+ * message_length maximum value (in bytes):
207+ * - STSAFE-A110 : STSAFEA_MAX_FRAME_LENGTH_A110 - 22 - authentication_tag_length - associated_data_length
208+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 22 - authentication_tag_length - associated_data_length
191209 * \param[in] pEncrypted_message Buffer containing the message to decrypt
192210 * \param[in] pAuthentication_tag Buffer containing the authentication tag
193211 * \param[out] pVerification_result Verification result flag
@@ -218,7 +236,9 @@ stse_ReturnCode_t stsafea_aes_ccm_decrypt(
218236 * \param[in] total_ciphertext_length Length of the complete ciphertext
219237 * \param[in] associated_data_chunk_length Length of the associated data chunk
220238 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
221- * \param[in] message_chunk_length Length of the message chunk to decrypt
239+ * \param[in] message_chunk_length Length of the message chunk to decrypt<br>
240+ * message_chunk_length maximum value (in bytes):
241+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 17 - Nonce_length - associated_data_chunk_length
222242 * \param[in] pEncrypted_message_chunk Buffer containing the message chunk to decrypt
223243 * \param[out] pPlaintext_message_chunk Buffer to store the decrypted message chunk
224244 * \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
@@ -242,7 +262,9 @@ stse_ReturnCode_t stsafea_aes_ccm_decrypt_start(
242262 * \param[in] pSTSE Pointer to STSE Handler
243263 * \param[in] associated_data_chunk_length Length of the associated data chunk
244264 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
245- * \param[in] message_chunk_length Length of the message chunk to decrypt
265+ * \param[in] message_chunk_length Length of the message chunk to decrypt<br>
266+ * message_chunk_length maximum value (in bytes):
267+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 8 - associated_data_chunk_length
246268 * \param[in] pEncrypted_message_chunk Buffer containing the message chunk to decrypt
247269 * \param[out] pPlaintext_message_chunk Buffer to store the decrypted message chunk
248270 * \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
@@ -262,7 +284,9 @@ stse_ReturnCode_t stsafea_aes_ccm_decrypt_process(
262284 * \param[in] authentication_tag_length Length of the output authentication tag
263285 * \param[in] associated_data_chunk_length Length of the associated data chunk
264286 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
265- * \param[in] message_chunk_length Length of the message chunk to decrypt
287+ * \param[in] message_chunk_length Length of the message chunk to decrypt<br>
288+ * message_chunk_length maximum value (in bytes):
289+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 8 - authentication_tag_length - associated_data_chunk_length
266290 * \param[in] pEncrypted_message_chunk Buffer containing the message chunk to decrypt
267291 * \param[in] pAuthentication_tag Authentication tag
268292 * \param[out] pVerification_result Verification result flag
@@ -290,7 +314,9 @@ stse_ReturnCode_t stsafea_aes_ccm_decrypt_finish(
290314 * \param[in] pIV IV buffer
291315 * \param[in] associated_data_length Length of the associated data
292316 * \param[in] pAssociated_data Buffer containing associated data
293- * \param[in] message_length Length of the message to encrypt
317+ * \param[in] message_length Length of the message to encrypt<br>
318+ * message_length maximum value (in bytes):
319+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 11 - IV_length - associated_data_length
294320 * \param[in] pPlaintext_message Buffer containing the message to encrypt
295321 * \param[out] pEncrypted_message Buffer to store the encrypted message
296322 * \param[out] pAuthentication_tag Buffer to store the authentication tag
@@ -318,7 +344,9 @@ stse_ReturnCode_t stsafea_aes_gcm_encrypt(
318344 * \param[in] pIV IV buffer
319345 * \param[in] associated_data_chunk_length Length of the associated data chunk
320346 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
321- * \param[in] message_chunk_length Length of the message chunk to encrypt
347+ * \param[in] message_chunk_length Length of the message chunk to encrypt<br>
348+ * message_chunk_length maximum value (in bytes):
349+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 11 - IV_length - associated_data_chunk_length
322350 * \param[in] pPlaintext_message_chunk Buffer containing the message chunk to encrypt
323351 * \param[out] pEncrypted_message_chunk Buffer to store the encrypted message
324352 * \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
@@ -340,7 +368,9 @@ stse_ReturnCode_t stsafea_aes_gcm_encrypt_start(
340368 * \param[in] pSTSE Pointer to STSE Handler
341369 * \param[in] associated_data_chunk_length Length of the associated data chunk
342370 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
343- * \param[in] message_chunk_length Length of the message chunk to encrypt
371+ * \param[in] message_chunk_length Length of the message chunk to encrypt<br>
372+ * message_chunk_length maximum value (in bytes):
373+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 8 - associated_data_chunk_length
344374 * \param[in] pPlaintext_message_chunk Buffer containing the message chunk to encrypt
345375 * \param[out] pEncrypted_message_chunk Buffer to store the encrypted message chunk
346376 * \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
@@ -360,7 +390,9 @@ stse_ReturnCode_t stsafea_aes_gcm_encrypt_process(
360390 * \param[in] authentication_tag_length Length of the output authentication tag
361391 * \param[in] associated_data_chunk_length Length of the associated data chunk
362392 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
363- * \param[in] message_chunk_length Length of the message chunk
393+ * \param[in] message_chunk_length Length of the message chunk<br>
394+ * message_chunk_length maximum value (in bytes):
395+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 8 - associated_data_chunk_length
364396 * \param[in] pPlaintext_message_chunk Buffer containing the message chunk to encrypt
365397 * \param[out] pEncrypted_message_chunk Buffer to store the encrypted message chunk
366398 * \param[out] pAuthentication_tag Authentication tag
@@ -386,7 +418,9 @@ stse_ReturnCode_t stsafea_aes_gcm_encrypt_finish(
386418 * \param[in] pIV IV buffer
387419 * \param[in] associated_data_length Length of the associated data
388420 * \param[in] pAssociated_data Buffer containing associated data
389- * \param[in] message_length Length of the message to decrypt
421+ * \param[in] message_length Length of the message to decrypt<br>
422+ * message_length maximum value (in bytes):
423+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 11 - authentication_tag_length - IV_length - associated_data_length
390424 * \param[in] pEncrypted_message Buffer containing the message to decrypt
391425 * \param[in] pAuthentication_tag Buffer containing the authentication tag
392426 * \param[out] pVerification_result Verification result flag
@@ -416,7 +450,9 @@ stse_ReturnCode_t stsafea_aes_gcm_decrypt(
416450 * \param[in] pIV IV buffer
417451 * \param[in] associated_data_chunk_length Length of the associated data chunk
418452 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
419- * \param[in] message_chunk_length Length of the message chunk to decrypt
453+ * \param[in] message_chunk_length Length of the message chunk to decrypt<br>
454+ * message_chunk_length maximum value (in bytes):
455+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 11 - IV_length - associated_data_chunk_length
420456 * \param[in] pEncrypted_message_chunk Buffer containing the message chunk to decrypt
421457 * \param[out] pPlaintext_message_chunk Buffer to store the decrypted message chunk
422458 * \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
@@ -438,7 +474,9 @@ stse_ReturnCode_t stsafea_aes_gcm_decrypt_start(
438474 * \param[in] pSTSE Pointer to STSE Handler
439475 * \param[in] associated_data_chunk_length Length of the associated data chunk
440476 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
441- * \param[in] message_chunk_length Length of the message chunk to decrypt
477+ * \param[in] message_chunk_length Length of the message chunk to decrypt<br>
478+ * message_chunk_length maximum value (in bytes):
479+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 8 - associated_data_chunk_length
442480 * \param[in] pEncrypted_message_chunk Buffer containing the message chunk to decrypt
443481 * \param[out] pPlaintext_message_chunk Buffer to store the decrypted message chunk
444482 * \return \ref STSE_OK on success ; \ref stse_ReturnCode_t error code otherwise
@@ -458,7 +496,9 @@ stse_ReturnCode_t stsafea_aes_gcm_decrypt_process(
458496 * \param[in] authentication_tag_length Length of the output authentication tag
459497 * \param[in] associated_data_chunk_length Length of the associated data chunk
460498 * \param[in] pAssociated_data_chunk Buffer containing associated data chunk
461- * \param[in] message_chunk_length Length of the message chunk to decrypt
499+ * \param[in] message_chunk_length Length of the message chunk to decrypt<br>
500+ * message_chunk_length maximum value (in bytes):
501+ * - STSAFE-A120 : STSAFEA_MAX_FRAME_LENGTH_A120 - 11 - authentication_tag_length - associated_data_chunk_length
462502 * \param[in] pEncrypted_message_chunk Buffer containing the message chunk to decrypt
463503 * \param[in] pAuthentication_tag Authentication tag
464504 * \param[out] pVerification_result Verification result flag
0 commit comments