Optimised SOSEMANUK key stream output to avoid unnecessary copying. Optimised constant-time compare extension method.