mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-05-02 14:16:28 -04:00
Remove redundant RAM address and data scrambling
The RAM address and data scrambling API was called twice, once before filling RAM with random values, and once after. Since moving to a significantly better PRNG (xorwow) this is now deemed unnecessary. See issue #225. This changes both FPGA and firmware hashes.
This commit is contained in:
parent
92712a11bf
commit
b4c525695a
3 changed files with 3 additions and 8 deletions
|
@ -377,10 +377,6 @@ static void scramble_ram(void)
|
|||
{
|
||||
uint32_t *ram = (uint32_t *)(TK1_RAM_BASE);
|
||||
|
||||
// Set RAM address and data scrambling values
|
||||
*ram_rand = rnd_word();
|
||||
*ram_scramble = rnd_word();
|
||||
|
||||
// Fill RAM with random data
|
||||
// Get random state and accumulator seeds.
|
||||
uint32_t data_state = rnd_word();
|
||||
|
@ -391,8 +387,7 @@ static void scramble_ram(void)
|
|||
ram[w] = data_state;
|
||||
}
|
||||
|
||||
// Set new address and RAM scrambling values,
|
||||
// for all use of RAM by app.
|
||||
// Set RAM address and data scrambling parameters
|
||||
*ram_rand = rnd_word();
|
||||
*ram_scramble = rnd_word();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue