Merge pull request #1168 from gabor-mezei-arm/bp228_buffer_protection_for_cipher

[Backport] Buffer protection for cipher functions