From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Technique:Identifying cryptographic constants" |
|---|
| claim | "ChaCha20, Salsa20 and their HChaCha/HSalsa variants load the ASCII text 'expand 32-byte k' as words 61707865 3320646E 79622D32 6B206574 into the state." |
|---|
| scope | | level | "technique" |
|---|
| applies_to | "Technique:Identifying cryptographic constants" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "string or immediates" |
|---|
| indicator | "65 78 70 61 6E 64 20 33 32 2D 62 79 74 65 20 6B (expand 32-byte k); immediates 0x61707865 0x3320646E 0x79622D32 0x6B206574" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "x0..x3 set to the four words" |
|---|
| repo | "https://github.com/jedisct1/libsodium" |
|---|
| commit | "60b751cd14418fae2d17e6f1003e43622b3e5a25" |
|---|
| path | "src/libsodium/crypto_core/hchacha20/core_hchacha20.c" |
|---|
| lines | "24-28" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "ChaCha and Salsa sigma constant" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T07:03:40.262Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T03:42:38.164Z" |
|---|
| result | "confirmed" |
|---|
| method | "core_hchacha20.c lines 24-28 at the cited libsodium commit set x0..x3 to 0x61707865 0x3320646e 0x79622d32 0x6b206574; chacha20_ref.c uses the same words. 128-bit-key variants use a different text ('expand 16-byte k') and are outside this claim." |
|---|
|
|
|---|