add createKeyStream, isOpen, isClosed