Support storing an integrity-check value alongside the encrypted value