# how long does the cycle length have to be in stream ciphers? [duplicate]

could someone tell me how long the cycle length must be in stream ciphers, so a security exists. how to compare the cycle length to the state space?

I investigate the algorithm spritz and I have the attainability of the states under investigation with key lengths of 1 - 10 and n = 6. now I have the values ​​but I still do not know how to interpret them. the maximum cycle length for N = 6 is 660.390 and the smallest 12. But how should I evaluate this with regard to the safety? I hope I have described it somewhat better.

• many thanks for the link but I still have a question. For example- if I have a statespace with initial states of 4500 and the largest cycle length has the value 1500 what says that. (I only look at the input of keys until they run into a cycle) Oct 28 '17 at 11:49
• If you only have 4500 different states then you are in trouble. If you have a cycle length of anything that is 1500 then you are in trouble. If you try and input keys instead of producing output then you are in trouble. But without further specifications there is little more to say. If this is an exercise, which I suppose it is, then you should ask clarification about the exercise from the person/institution that created it. Oct 28 '17 at 11:53
• Yes it's an exercise. Is there not a guideline for the perfect cycle length? Oct 28 '17 at 12:01
• Well, yes, it's mentioned in the post above, about half of the size of the state in bits, but that's considering that the state itself should be considered random. WRT the question above, I think we would need more context to give the correct answer, context that is undoubtedly present in your study materials. Oct 28 '17 at 12:45
• I investigate the algorithm spritz and I have the attainability of the states under investigation with key lengths of 1 - 10 and n = 6. now I have the values ​​but I still do not know how to interpret them. the maximum cycle length for N = 6 is 660.390 and the smallest 12. But how should I evaluate this with regard to the safety? I hope I have described it somewhat better. Oct 28 '17 at 12:52