add events for decrypting and encrypting chunks