The RC4 encryption algorithm is started with a different key length , usually between 40 and 256 bits , using the key-scheduling algorithm ( KSA ) .
The permutation is initialized with a variable length key , typically between 40 and 256 bits , using the key-scheduling algorithm ( KSA ) .