finished EncryptedInputStream

needs testing