[PATCH v2 2/4] selftests/sgx: Fix calculations for sub-maximum field sizes