mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 17:09:41 -04:00
Merge pull request #8271 from daverodgman/fix-numops
Fix error handling in psa_driver_wrapper_xxx_hash_get_num_ops
This commit is contained in:
commit
f7baf7bfb3
@ -492,7 +492,8 @@ static inline uint32_t psa_driver_wrapper_sign_hash_get_num_ops(
|
|||||||
#endif /* PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT */
|
#endif /* PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT */
|
||||||
}
|
}
|
||||||
|
|
||||||
return( PSA_ERROR_INVALID_ARGUMENT );
|
/* Can't happen (see discussion in #8271) */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint32_t psa_driver_wrapper_verify_hash_get_num_ops(
|
static inline uint32_t psa_driver_wrapper_verify_hash_get_num_ops(
|
||||||
@ -516,7 +517,8 @@ static inline uint32_t psa_driver_wrapper_verify_hash_get_num_ops(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return( PSA_ERROR_INVALID_ARGUMENT );
|
/* Can't happen (see discussion in #8271) */
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline psa_status_t psa_driver_wrapper_sign_hash_start(
|
static inline psa_status_t psa_driver_wrapper_sign_hash_start(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user