[dv/hmac] fix xcelium run time error
[dv/hmac] fix xcelium run time error

Fix dpi-c error when malloc a memory size of 0

lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan