Description Usage Arguments Value Examples
Block cipher with substitution permutation and a xor key.
1 | toysp(block, key, rounds, s, p)
|
block |
Block as bit stream. |
key |
Key as bit stream. |
rounds |
Rounds. |
s |
Substitution box n·n, as an array with numbers between 0 and 2^n-1. |
p |
Permuation, as an array with numbers between 1 and block size. |
Encrypted block as bit stream.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.