Merge pull request #3652 from d-otte/mbedtls-2.7

Backport 2.7: adjusting size of sliding window array to correct size