Crypto: Refine SHA384 and SHA512 test config

SHA384 and SHA512 test is related with CC312_LEGACY_DRIVER_API_ENABLED.
While the original CC312_LEGACY_DRIVER_API_ENABLED setting is in platform cmake
which is after tf-m-test cmake, so CC312_LEGACY_DRIVER_API_ENABLED is not worked
as expected. Do this refinement to solve this issue.

Signed-off-by: Summer Qin <summer.qin@arm.com>
Change-Id: I74d4145fd3e75a34c36bbd2119ddac666541d621
3 files changed