Fixed encrypt and decrypt block reading.