@@ -782,7 +782,7 @@ typedef struct psa_hash_operation_s psa_hash_operation_t;
782
782
*/
783
783
static psa_hash_operation_t psa_hash_operation_init (void );
784
784
785
- /** Start a multipart hash operation.
785
+ /** Set up a multipart hash operation.
786
786
*
787
787
* The sequence of operations to calculate a hash (message digest)
788
788
* is as follows:
@@ -816,6 +816,9 @@ static psa_hash_operation_t psa_hash_operation_init(void);
816
816
* Success.
817
817
* \retval #PSA_ERROR_NOT_SUPPORTED
818
818
* \p alg is not supported or is not a hash algorithm.
819
+ * \retval #PSA_ERROR_BAD_STATE
820
+ * The operation state is not valid (already set up and not
821
+ * subsequently completed).
819
822
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
820
823
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
821
824
* \retval #PSA_ERROR_HARDWARE_FAILURE
@@ -837,7 +840,7 @@ psa_status_t psa_hash_setup(psa_hash_operation_t *operation,
837
840
* \retval #PSA_SUCCESS
838
841
* Success.
839
842
* \retval #PSA_ERROR_BAD_STATE
840
- * The operation state is not valid (not started , or already completed).
843
+ * The operation state is not valid (not set up , or already completed).
841
844
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
842
845
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
843
846
* \retval #PSA_ERROR_HARDWARE_FAILURE
@@ -874,7 +877,7 @@ psa_status_t psa_hash_update(psa_hash_operation_t *operation,
874
877
* \retval #PSA_SUCCESS
875
878
* Success.
876
879
* \retval #PSA_ERROR_BAD_STATE
877
- * The operation state is not valid (not started , or already completed).
880
+ * The operation state is not valid (not set up , or already completed).
878
881
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
879
882
* The size of the \p hash buffer is too small. You can determine a
880
883
* sufficient buffer size by calling #PSA_HASH_SIZE(\c alg)
@@ -914,7 +917,7 @@ psa_status_t psa_hash_finish(psa_hash_operation_t *operation,
914
917
* The hash of the message was calculated successfully, but it
915
918
* differs from the expected hash.
916
919
* \retval #PSA_ERROR_BAD_STATE
917
- * The operation state is not valid (not started , or already completed).
920
+ * The operation state is not valid (not set up , or already completed).
918
921
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
919
922
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
920
923
* \retval #PSA_ERROR_HARDWARE_FAILURE
@@ -1032,7 +1035,7 @@ typedef struct psa_mac_operation_s psa_mac_operation_t;
1032
1035
*/
1033
1036
static psa_mac_operation_t psa_mac_operation_init (void );
1034
1037
1035
- /** Start a multipart MAC calculation operation.
1038
+ /** Set up a multipart MAC calculation operation.
1036
1039
*
1037
1040
* This function sets up the calculation of the MAC
1038
1041
* (message authentication code) of a byte string.
@@ -1082,6 +1085,9 @@ static psa_mac_operation_t psa_mac_operation_init(void);
1082
1085
* \retval #PSA_ERROR_HARDWARE_FAILURE
1083
1086
* \retval #PSA_ERROR_TAMPERING_DETECTED
1084
1087
* \retval #PSA_ERROR_BAD_STATE
1088
+ * The operation state is not valid (already set up and not
1089
+ * subsequently completed).
1090
+ * \retval #PSA_ERROR_BAD_STATE
1085
1091
* The library has not been previously initialized by psa_crypto_init().
1086
1092
* It is implementation-dependent whether a failure to initialize
1087
1093
* results in this error code.
@@ -1090,7 +1096,7 @@ psa_status_t psa_mac_sign_setup(psa_mac_operation_t *operation,
1090
1096
psa_key_handle_t handle ,
1091
1097
psa_algorithm_t alg );
1092
1098
1093
- /** Start a multipart MAC verification operation.
1099
+ /** Set up a multipart MAC verification operation.
1094
1100
*
1095
1101
* This function sets up the verification of the MAC
1096
1102
* (message authentication code) of a byte string against an expected value.
@@ -1139,6 +1145,9 @@ psa_status_t psa_mac_sign_setup(psa_mac_operation_t *operation,
1139
1145
* \retval #PSA_ERROR_HARDWARE_FAILURE
1140
1146
* \retval #PSA_ERROR_TAMPERING_DETECTED
1141
1147
* \retval #PSA_ERROR_BAD_STATE
1148
+ * The operation state is not valid (already set up and not
1149
+ * subsequently completed).
1150
+ * \retval #PSA_ERROR_BAD_STATE
1142
1151
* The library has not been previously initialized by psa_crypto_init().
1143
1152
* It is implementation-dependent whether a failure to initialize
1144
1153
* results in this error code.
@@ -1162,7 +1171,7 @@ psa_status_t psa_mac_verify_setup(psa_mac_operation_t *operation,
1162
1171
* \retval #PSA_SUCCESS
1163
1172
* Success.
1164
1173
* \retval #PSA_ERROR_BAD_STATE
1165
- * The operation state is not valid (not started , or already completed).
1174
+ * The operation state is not valid (not set up , or already completed).
1166
1175
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
1167
1176
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
1168
1177
* \retval #PSA_ERROR_HARDWARE_FAILURE
@@ -1201,7 +1210,7 @@ psa_status_t psa_mac_update(psa_mac_operation_t *operation,
1201
1210
* \retval #PSA_SUCCESS
1202
1211
* Success.
1203
1212
* \retval #PSA_ERROR_BAD_STATE
1204
- * The operation state is not valid (not started , or already completed).
1213
+ * The operation state is not valid (not set up , or already completed).
1205
1214
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
1206
1215
* The size of the \p mac buffer is too small. You can determine a
1207
1216
* sufficient buffer size by calling PSA_MAC_FINAL_SIZE().
@@ -1240,7 +1249,7 @@ psa_status_t psa_mac_sign_finish(psa_mac_operation_t *operation,
1240
1249
* The MAC of the message was calculated successfully, but it
1241
1250
* differs from the expected MAC.
1242
1251
* \retval #PSA_ERROR_BAD_STATE
1243
- * The operation state is not valid (not started , or already completed).
1252
+ * The operation state is not valid (not set up , or already completed).
1244
1253
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
1245
1254
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
1246
1255
* \retval #PSA_ERROR_HARDWARE_FAILURE
@@ -1384,6 +1393,9 @@ static psa_cipher_operation_t psa_cipher_operation_init(void);
1384
1393
* \retval #PSA_ERROR_HARDWARE_FAILURE
1385
1394
* \retval #PSA_ERROR_TAMPERING_DETECTED
1386
1395
* \retval #PSA_ERROR_BAD_STATE
1396
+ * The operation state is not valid (already set up and not
1397
+ * subsequently completed).
1398
+ * \retval #PSA_ERROR_BAD_STATE
1387
1399
* The library has not been previously initialized by psa_crypto_init().
1388
1400
* It is implementation-dependent whether a failure to initialize
1389
1401
* results in this error code.
@@ -1443,6 +1455,9 @@ psa_status_t psa_cipher_encrypt_setup(psa_cipher_operation_t *operation,
1443
1455
* \retval #PSA_ERROR_HARDWARE_FAILURE
1444
1456
* \retval #PSA_ERROR_TAMPERING_DETECTED
1445
1457
* \retval #PSA_ERROR_BAD_STATE
1458
+ * The operation state is not valid (already set up and not
1459
+ * subsequently completed).
1460
+ * \retval #PSA_ERROR_BAD_STATE
1446
1461
* The library has not been previously initialized by psa_crypto_init().
1447
1462
* It is implementation-dependent whether a failure to initialize
1448
1463
* results in this error code.
@@ -1471,7 +1486,7 @@ psa_status_t psa_cipher_decrypt_setup(psa_cipher_operation_t *operation,
1471
1486
* \retval #PSA_SUCCESS
1472
1487
* Success.
1473
1488
* \retval #PSA_ERROR_BAD_STATE
1474
- * The operation state is not valid (not started , or IV already set).
1489
+ * The operation state is not valid (not set up , or IV already set).
1475
1490
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
1476
1491
* The size of the \p iv buffer is too small.
1477
1492
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
@@ -1505,7 +1520,7 @@ psa_status_t psa_cipher_generate_iv(psa_cipher_operation_t *operation,
1505
1520
* \retval #PSA_SUCCESS
1506
1521
* Success.
1507
1522
* \retval #PSA_ERROR_BAD_STATE
1508
- * The operation state is not valid (not started , or IV already set).
1523
+ * The operation state is not valid (not set up , or IV already set).
1509
1524
* \retval #PSA_ERROR_INVALID_ARGUMENT
1510
1525
* The size of \p iv is not acceptable for the chosen algorithm,
1511
1526
* or the chosen algorithm does not use an IV.
@@ -1541,7 +1556,7 @@ psa_status_t psa_cipher_set_iv(psa_cipher_operation_t *operation,
1541
1556
* \retval #PSA_SUCCESS
1542
1557
* Success.
1543
1558
* \retval #PSA_ERROR_BAD_STATE
1544
- * The operation state is not valid (not started , IV required but
1559
+ * The operation state is not valid (not set up , IV required but
1545
1560
* not set, or already completed).
1546
1561
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
1547
1562
* The size of the \p output buffer is too small.
@@ -1579,7 +1594,7 @@ psa_status_t psa_cipher_update(psa_cipher_operation_t *operation,
1579
1594
* \retval #PSA_SUCCESS
1580
1595
* Success.
1581
1596
* \retval #PSA_ERROR_BAD_STATE
1582
- * The operation state is not valid (not started , IV required but
1597
+ * The operation state is not valid (not set up , IV required but
1583
1598
* not set, or already completed).
1584
1599
* \retval #PSA_ERROR_BUFFER_TOO_SMALL
1585
1600
* The size of the \p output buffer is too small.
0 commit comments