[PATCH v5 07/27] hash: integrate hash on mbedtls