Merge pull request #7320 from tom-cosgrove-arm/static-assert-2.28

Backport 2.28: Implement and use MBEDTLS_STATIC_ASSERT()