Raven Core
3.0.0
P2P Digital Currency
|
Go to the source code of this file.
Macros | |
#define | DECL_TMP8(w) sph_u32 w ## 0, w ## 1, w ## 2, w ## 3, w ## 4, w ## 5, w ## 6, w ## 7; |
#define | M2(d, s) |
#define | XOR(d, s1, s2) |
#define | SUB_CRUMB(a0, a1, a2, a3) |
#define | MIX_WORD(u, v) |
#define | DECL_STATE3 |
#define | READ_STATE3(state) |
#define | WRITE_STATE3(state) |
#define | MI3 |
#define | TWEAK3 |
#define | P3 |
#define | DECL_STATE4 |
#define | READ_STATE4(state) |
#define | WRITE_STATE4(state) |
#define | MI4 |
#define | TWEAK4 |
#define | P4 |
#define | DECL_STATE5 |
#define | READ_STATE5(state) |
#define | WRITE_STATE5(state) |
#define | MI5 |
#define | TWEAK5 |
#define | P5 |
Functions | |
void | sph_luffa224_init (void *cc) |
Initialize a Luffa-224 context. More... | |
void | sph_luffa224 (void *cc, const void *data, size_t len) |
Process some data bytes. More... | |
void | sph_luffa224_close (void *cc, void *dst) |
Terminate the current Luffa-224 computation and output the result into the provided buffer. More... | |
void | sph_luffa224_addbits_and_close (void *cc, unsigned ub, unsigned n, void *dst) |
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (28 bytes). More... | |
void | sph_luffa256_init (void *cc) |
Initialize a Luffa-256 context. More... | |
void | sph_luffa256 (void *cc, const void *data, size_t len) |
Process some data bytes. More... | |
void | sph_luffa256_close (void *cc, void *dst) |
Terminate the current Luffa-256 computation and output the result into the provided buffer. More... | |
void | sph_luffa256_addbits_and_close (void *cc, unsigned ub, unsigned n, void *dst) |
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (32 bytes). More... | |
void | sph_luffa384_init (void *cc) |
Initialize a Luffa-384 context. More... | |
void | sph_luffa384 (void *cc, const void *data, size_t len) |
Process some data bytes. More... | |
void | sph_luffa384_close (void *cc, void *dst) |
Terminate the current Luffa-384 computation and output the result into the provided buffer. More... | |
void | sph_luffa384_addbits_and_close (void *cc, unsigned ub, unsigned n, void *dst) |
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (48 bytes). More... | |
void | sph_luffa512_init (void *cc) |
Initialize a Luffa-512 context. More... | |
void | sph_luffa512 (void *cc, const void *data, size_t len) |
Process some data bytes. More... | |
void | sph_luffa512_close (void *cc, void *dst) |
Terminate the current Luffa-512 computation and output the result into the provided buffer. More... | |
void | sph_luffa512_addbits_and_close (void *cc, unsigned ub, unsigned n, void *dst) |
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (64 bytes). More... | |
#define DECL_STATE3 |
#define DECL_STATE4 |
#define DECL_STATE5 |
#define DECL_TMP8 | ( | w | ) | sph_u32 w ## 0, w ## 1, w ## 2, w ## 3, w ## 4, w ## 5, w ## 6, w ## 7; |
#define M2 | ( | d, | |
s | |||
) |
#define MI3 |
#define MIX_WORD | ( | u, | |
v | |||
) |
#define READ_STATE3 | ( | state | ) |
#define SUB_CRUMB | ( | a0, | |
a1, | |||
a2, | |||
a3 | |||
) |
#define TWEAK3 |
#define TWEAK4 |
#define TWEAK5 |
#define WRITE_STATE3 | ( | state | ) |
void sph_luffa224 | ( | void * | cc, |
const void * | data, | ||
size_t | len | ||
) |
void sph_luffa224_addbits_and_close | ( | void * | cc, |
unsigned | ub, | ||
unsigned | n, | ||
void * | dst | ||
) |
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (28 bytes).
If bit number i in ub
has value 2^i, then the extra bits are those numbered 7 downto 8-n (this is the big-endian convention at the byte level). The context is automatically reinitialized.
cc | the Luffa-224 context |
ub | the extra bits |
n | the number of extra bits (0 to 7) |
dst | the destination buffer |
Definition at line 1319 of file luffa.c.
void sph_luffa224_close | ( | void * | cc, |
void * | dst | ||
) |
Terminate the current Luffa-224 computation and output the result into the provided buffer.
The destination buffer must be wide enough to accomodate the result (28 bytes). The context is automatically reinitialized.
cc | the Luffa-224 context |
dst | the destination buffer |
Definition at line 1312 of file luffa.c.
void sph_luffa224_init | ( | void * | cc | ) |
Initialize a Luffa-224 context.
This process performs no memory allocation.
cc | the Luffa-224 context (pointer to a sph_luffa224_context ) |
Definition at line 1294 of file luffa.c.
void sph_luffa256 | ( | void * | cc, |
const void * | data, | ||
size_t | len | ||
) |
void sph_luffa256_addbits_and_close | ( | void * | cc, |
unsigned | ub, | ||
unsigned | n, | ||
void * | dst | ||
) |
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (32 bytes).
If bit number i in ub
has value 2^i, then the extra bits are those numbered 7 downto 8-n (this is the big-endian convention at the byte level). The context is automatically reinitialized.
cc | the Luffa-256 context |
ub | the extra bits |
n | the number of extra bits (0 to 7) |
dst | the destination buffer |
Definition at line 1352 of file luffa.c.
void sph_luffa256_close | ( | void * | cc, |
void * | dst | ||
) |
Terminate the current Luffa-256 computation and output the result into the provided buffer.
The destination buffer must be wide enough to accomodate the result (32 bytes). The context is automatically reinitialized.
cc | the Luffa-256 context |
dst | the destination buffer |
Definition at line 1345 of file luffa.c.
void sph_luffa256_init | ( | void * | cc | ) |
void sph_luffa384 | ( | void * | cc, |
const void * | data, | ||
size_t | len | ||
) |
void sph_luffa384_addbits_and_close | ( | void * | cc, |
unsigned | ub, | ||
unsigned | n, | ||
void * | dst | ||
) |
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (48 bytes).
If bit number i in ub
has value 2^i, then the extra bits are those numbered 7 downto 8-n (this is the big-endian convention at the byte level). The context is automatically reinitialized.
cc | the Luffa-384 context |
ub | the extra bits |
n | the number of extra bits (0 to 7) |
dst | the destination buffer |
Definition at line 1385 of file luffa.c.
void sph_luffa384_close | ( | void * | cc, |
void * | dst | ||
) |
Terminate the current Luffa-384 computation and output the result into the provided buffer.
The destination buffer must be wide enough to accomodate the result (48 bytes). The context is automatically reinitialized.
cc | the Luffa-384 context |
dst | the destination buffer |
Definition at line 1378 of file luffa.c.
void sph_luffa384_init | ( | void * | cc | ) |
Initialize a Luffa-384 context.
This process performs no memory allocation.
cc | the Luffa-384 context (pointer to a sph_luffa384_context ) |
Definition at line 1360 of file luffa.c.
void sph_luffa512 | ( | void * | cc, |
const void * | data, | ||
size_t | len | ||
) |
void sph_luffa512_addbits_and_close | ( | void * | cc, |
unsigned | ub, | ||
unsigned | n, | ||
void * | dst | ||
) |
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the result in the provided buffer, which must be wide enough to accomodate the result (64 bytes).
If bit number i in ub
has value 2^i, then the extra bits are those numbered 7 downto 8-n (this is the big-endian convention at the byte level). The context is automatically reinitialized.
cc | the Luffa-512 context |
ub | the extra bits |
n | the number of extra bits (0 to 7) |
dst | the destination buffer |
Definition at line 1418 of file luffa.c.
void sph_luffa512_close | ( | void * | cc, |
void * | dst | ||
) |
Terminate the current Luffa-512 computation and output the result into the provided buffer.
The destination buffer must be wide enough to accomodate the result (64 bytes). The context is automatically reinitialized.
cc | the Luffa-512 context |
dst | the destination buffer |
Definition at line 1411 of file luffa.c.
void sph_luffa512_init | ( | void * | cc | ) |
Initialize a Luffa-512 context.
This process performs no memory allocation.
cc | the Luffa-512 context (pointer to a sph_luffa512_context ) |
Definition at line 1393 of file luffa.c.