key stream from array