From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Technique:Identifying cryptographic constants" |
|---|
| claim | "RC4 has no constants; it is a 256-byte state with the key schedule j = (j + S[i] + key[i % keylen]) mod 256 and swap, then i++, j += S[i], swap, output S[(S[i]+S[j]) mod 256]." |
|---|
| scope | | level | "technique" |
|---|
| applies_to | "Technique:Identifying cryptographic constants" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "loop shape" |
|---|
| indicator | "two loops over 0x100 entries with a modulo by the key length and a byte swap" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "arcfour_key_setup and arcfour_generate_stream" |
|---|
| repo | "https://github.com/B-Con/crypto-algorithms" |
|---|
| commit | "cfbde48414baacf51fc7c74f275190881f037d32" |
|---|
| path | "arcfour.c" |
|---|
| lines | "19-48" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "RC4 shape" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T07:03:40.545Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T03:42:38.235Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read arcfour_key_setup and arcfour_generate_stream in B-Con arcfour.c lines 19-48 at the cited commit: loops and swap steps match the claim." |
|---|
|
|
|---|