diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-06-27 16:36:11 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-07-05 11:16:58 +0200 |
| commit | de866ad56fd465e89c9df6c6e12e0819098be386 (patch) | |
| tree | f666b2efb3acca5fa385a634eff7511d1b0a4707 /src/ref/lilliput-ae-utils.h | |
| parent | a8da992171ac09ccca931f9909f5b199042b2ea8 (diff) | |
| download | lilliput-ae-implem-de866ad56fd465e89c9df6c6e12e0819098be386.tar.xz | |
Réécriture des commentaires schématiques sur les tweaks
Diffstat (limited to 'src/ref/lilliput-ae-utils.h')
| -rw-r--r-- | src/ref/lilliput-ae-utils.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ref/lilliput-ae-utils.h b/src/ref/lilliput-ae-utils.h index a66b75c..19b4623 100644 --- a/src/ref/lilliput-ae-utils.h +++ b/src/ref/lilliput-ae-utils.h @@ -102,12 +102,15 @@ static inline void fill_index_tweak( uint8_t tweak[TWEAK_BYTES] ) { - /* With an s-bit block index, the t-bit tweak is filled as follows: + /* The t-bit tweak is filled as follows: * - * [ 1, 4]: 4-bit prefix - * [ 5, t]: block index - * [ 5, t-s]: 0-padding - * [t-s+1, t]: actual block index, from MSB to LSB + * 1 4 5 t + * [ prefix || block index ] + * + * The s-bit block index is encoded as follows: + * + * 5 t-s t-s+1 t + * [ zero padding || block index, MSB first ] */ tweak[0] = prefix<<4; |
