Internal implementation of the SPARKLE permutation.
More...
#include "internal-util.h"
Go to the source code of this file.
Internal implementation of the SPARKLE permutation.
References: https://www.cryptolux.org/index.php/Sparkle
void sparkle_256 |
( |
uint32_t |
s[SPARKLE_256_STATE_SIZE], |
|
|
unsigned |
steps |
|
) |
| |
Performs the SPARKLE-256 permutation.
- Parameters
-
s | The words of the SPARKLE-256 state in little-endian byte order. |
steps | The number of steps to perform, 7 or 10. |
void sparkle_384 |
( |
uint32_t |
s[SPARKLE_384_STATE_SIZE], |
|
|
unsigned |
steps |
|
) |
| |
Performs the SPARKLE-384 permutation.
- Parameters
-
s | The words of the SPARKLE-384 state in little-endian byte order. |
steps | The number of steps to perform, 7 or 11. |
void sparkle_512 |
( |
uint32_t |
s[SPARKLE_512_STATE_SIZE], |
|
|
unsigned |
steps |
|
) |
| |
Performs the SPARKLE-512 permutation.
- Parameters
-
s | The words of the SPARKLE-512 state in little-endian byte order. |
steps | The number of steps to perform, 8 or 12. |