Merge pull request #1167 from gabor-mezei-arm/buffer_protection_for_cipher

Buffer protection for cipher functions