File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ psa_status_t psa_crypto_init(void)
89
89
90
90
psa_status_t psa_mac_abort (psa_mac_operation_t * operation )
91
91
{
92
- if (operation -> handle <= 0 ) {
92
+ if (operation -> handle <= PSA_NULL_HANDLE ) {
93
93
return (PSA_SUCCESS );
94
94
}
95
95
@@ -193,7 +193,7 @@ psa_status_t psa_mac_verify_finish(psa_mac_operation_t *operation,
193
193
194
194
psa_status_t psa_hash_abort (psa_hash_operation_t * operation )
195
195
{
196
- if (operation -> handle <= 0 ) {
196
+ if (operation -> handle <= PSA_NULL_HANDLE ) {
197
197
return (PSA_SUCCESS );
198
198
}
199
199
@@ -933,7 +933,7 @@ psa_status_t psa_generator_read(psa_crypto_generator_t *generator,
933
933
{ output , output_length }
934
934
};
935
935
936
- if (generator -> handle <= 0 ) {
936
+ if (generator -> handle <= PSA_NULL_HANDLE ) {
937
937
return (PSA_ERROR_BAD_STATE );
938
938
}
939
939
@@ -1161,7 +1161,7 @@ psa_status_t psa_cipher_finish(psa_cipher_operation_t *operation,
1161
1161
1162
1162
psa_status_t psa_cipher_abort (psa_cipher_operation_t * operation )
1163
1163
{
1164
- if (operation -> handle <= 0 ) {
1164
+ if (operation -> handle <= PSA_NULL_HANDLE ) {
1165
1165
return (PSA_SUCCESS );
1166
1166
}
1167
1167
You can’t perform that action at this time.
0 commit comments