Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the source code of this file.
Macros | |
#define | Z00 0 |
#define | Z01 1 |
#define | Z02 2 |
#define | Z03 3 |
#define | Z04 4 |
#define | Z05 5 |
#define | Z06 6 |
#define | Z07 7 |
#define | Z08 8 |
#define | Z09 9 |
#define | Z0A A |
#define | Z0B B |
#define | Z0C C |
#define | Z0D D |
#define | Z0E E |
#define | Z0F F |
#define | Z10 E |
#define | Z11 A |
#define | Z12 4 |
#define | Z13 8 |
#define | Z14 9 |
#define | Z15 F |
#define | Z16 D |
#define | Z17 6 |
#define | Z18 1 |
#define | Z19 C |
#define | Z1A 0 |
#define | Z1B 2 |
#define | Z1C B |
#define | Z1D 7 |
#define | Z1E 5 |
#define | Z1F 3 |
#define | Z20 B |
#define | Z21 8 |
#define | Z22 C |
#define | Z23 0 |
#define | Z24 5 |
#define | Z25 2 |
#define | Z26 F |
#define | Z27 D |
#define | Z28 A |
#define | Z29 E |
#define | Z2A 3 |
#define | Z2B 6 |
#define | Z2C 7 |
#define | Z2D 1 |
#define | Z2E 9 |
#define | Z2F 4 |
#define | Z30 7 |
#define | Z31 9 |
#define | Z32 3 |
#define | Z33 1 |
#define | Z34 D |
#define | Z35 C |
#define | Z36 B |
#define | Z37 E |
#define | Z38 2 |
#define | Z39 6 |
#define | Z3A 5 |
#define | Z3B A |
#define | Z3C 4 |
#define | Z3D 0 |
#define | Z3E F |
#define | Z3F 8 |
#define | Z40 9 |
#define | Z41 0 |
#define | Z42 5 |
#define | Z43 7 |
#define | Z44 2 |
#define | Z45 4 |
#define | Z46 A |
#define | Z47 F |
#define | Z48 E |
#define | Z49 1 |
#define | Z4A B |
#define | Z4B C |
#define | Z4C 6 |
#define | Z4D 8 |
#define | Z4E 3 |
#define | Z4F D |
#define | Z50 2 |
#define | Z51 C |
#define | Z52 6 |
#define | Z53 A |
#define | Z54 0 |
#define | Z55 B |
#define | Z56 8 |
#define | Z57 3 |
#define | Z58 4 |
#define | Z59 D |
#define | Z5A 7 |
#define | Z5B 5 |
#define | Z5C F |
#define | Z5D E |
#define | Z5E 1 |
#define | Z5F 9 |
#define | Z60 C |
#define | Z61 5 |
#define | Z62 1 |
#define | Z63 F |
#define | Z64 E |
#define | Z65 D |
#define | Z66 4 |
#define | Z67 A |
#define | Z68 0 |
#define | Z69 7 |
#define | Z6A 6 |
#define | Z6B 3 |
#define | Z6C 9 |
#define | Z6D 2 |
#define | Z6E 8 |
#define | Z6F B |
#define | Z70 D |
#define | Z71 B |
#define | Z72 7 |
#define | Z73 E |
#define | Z74 C |
#define | Z75 1 |
#define | Z76 3 |
#define | Z77 9 |
#define | Z78 5 |
#define | Z79 0 |
#define | Z7A F |
#define | Z7B 4 |
#define | Z7C 8 |
#define | Z7D 6 |
#define | Z7E 2 |
#define | Z7F A |
#define | Z80 6 |
#define | Z81 F |
#define | Z82 E |
#define | Z83 9 |
#define | Z84 B |
#define | Z85 3 |
#define | Z86 0 |
#define | Z87 8 |
#define | Z88 C |
#define | Z89 2 |
#define | Z8A D |
#define | Z8B 7 |
#define | Z8C 1 |
#define | Z8D 4 |
#define | Z8E A |
#define | Z8F 5 |
#define | Z90 A |
#define | Z91 2 |
#define | Z92 8 |
#define | Z93 4 |
#define | Z94 7 |
#define | Z95 6 |
#define | Z96 1 |
#define | Z97 5 |
#define | Z98 F |
#define | Z99 B |
#define | Z9A 9 |
#define | Z9B E |
#define | Z9C 3 |
#define | Z9D C |
#define | Z9E D |
#define | Z9F 0 |
#define | Mx(r, i) Mx_(Z ## r ## i) |
#define | Mx_(n) Mx__(n) |
#define | Mx__(n) M ## n |
#define | CSx(r, i) CSx_(Z ## r ## i) |
#define | CSx_(n) CSx__(n) |
#define | CSx__(n) CS ## n |
#define | CS0 SPH_C32(0x243F6A88) |
#define | CS1 SPH_C32(0x85A308D3) |
#define | CS2 SPH_C32(0x13198A2E) |
#define | CS3 SPH_C32(0x03707344) |
#define | CS4 SPH_C32(0xA4093822) |
#define | CS5 SPH_C32(0x299F31D0) |
#define | CS6 SPH_C32(0x082EFA98) |
#define | CS7 SPH_C32(0xEC4E6C89) |
#define | CS8 SPH_C32(0x452821E6) |
#define | CS9 SPH_C32(0x38D01377) |
#define | CSA SPH_C32(0xBE5466CF) |
#define | CSB SPH_C32(0x34E90C6C) |
#define | CSC SPH_C32(0xC0AC29B7) |
#define | CSD SPH_C32(0xC97C50DD) |
#define | CSE SPH_C32(0x3F84D5B5) |
#define | CSF SPH_C32(0xB5470917) |
#define | GS(m0, m1, c0, c1, a, b, c, d) |
#define | ROUND_S(r) |
#define | DECL_STATE32 |
#define | READ_STATE32(state) |
#define | WRITE_STATE32(state) |
#define | COMPRESS32 |
Functions | |
static void | blake32_init (sph_blake_small_context *sc, const sph_u32 *iv, const sph_u32 *salt) |
static void | blake32 (sph_blake_small_context *sc, const void *data, size_t len) |
static void | blake32_close (sph_blake_small_context *sc, unsigned ub, unsigned n, void *dst, size_t out_size_w32) |
void | sph_blake224_init (void *cc) |
Initialize a BLAKE-224 context. More... | |
void | sph_blake224 (void *cc, const void *data, size_t len) |
Process some data bytes. More... | |
void | sph_blake224_close (void *cc, void *dst) |
Terminate the current BLAKE-224 computation and output the result into the provided buffer. More... | |
void | sph_blake224_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_blake256_init (void *cc) |
Initialize a BLAKE-256 context. More... | |
void | sph_blake256 (void *cc, const void *data, size_t len) |
Process some data bytes. More... | |
void | sph_blake256_close (void *cc, void *dst) |
Terminate the current BLAKE-256 computation and output the result into the provided buffer. More... | |
void | sph_blake256_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... | |
Variables | |
static const sph_u32 | IV224 [8] |
static const sph_u32 | IV256 [8] |
static const sph_u32 | salt_zero_small [4] = { 0, 0, 0, 0 } |
Macro Definition Documentation
◆ COMPRESS32
◆ CS0
◆ CS1
◆ CS2
◆ CS3
◆ CS4
◆ CS5
◆ CS6
◆ CS7
◆ CS8
◆ CS9
◆ CSA
◆ CSB
◆ CSC
◆ CSD
◆ CSE
◆ CSF
◆ CSx
◆ CSx_
◆ CSx__
◆ DECL_STATE32
#define DECL_STATE32 |
◆ GS
#define GS | ( | m0, | |
m1, | |||
c0, | |||
c1, | |||
a, | |||
b, | |||
c, | |||
d | |||
) |
◆ Mx
◆ Mx_
◆ Mx__
◆ READ_STATE32
#define READ_STATE32 | ( | state | ) |
Definition at line 478 of file blake.c.
Referenced by blake32().
◆ ROUND_S
#define ROUND_S | ( | r | ) |
◆ WRITE_STATE32
#define WRITE_STATE32 | ( | state | ) |
Definition at line 495 of file blake.c.
Referenced by blake32().
◆ Z00
◆ Z01
◆ Z02
◆ Z03
◆ Z04
◆ Z05
◆ Z06
◆ Z07
◆ Z08
◆ Z09
◆ Z0A
◆ Z0B
◆ Z0C
◆ Z0D
◆ Z0E
◆ Z0F
◆ Z10
◆ Z11
◆ Z12
◆ Z13
◆ Z14
◆ Z15
◆ Z16
◆ Z17
◆ Z18
◆ Z19
◆ Z1A
◆ Z1B
◆ Z1C
◆ Z1D
◆ Z1E
◆ Z1F
◆ Z20
◆ Z21
◆ Z22
◆ Z23
◆ Z24
◆ Z25
◆ Z26
◆ Z27
◆ Z28
◆ Z29
◆ Z2A
◆ Z2B
◆ Z2C
◆ Z2D
◆ Z2E
◆ Z2F
◆ Z30
◆ Z31
◆ Z32
◆ Z33
◆ Z34
◆ Z35
◆ Z36
◆ Z37
◆ Z38
◆ Z39
◆ Z3A
◆ Z3B
◆ Z3C
◆ Z3D
◆ Z3E
◆ Z3F
◆ Z40
◆ Z41
◆ Z42
◆ Z43
◆ Z44
◆ Z45
◆ Z46
◆ Z47
◆ Z48
◆ Z49
◆ Z4A
◆ Z4B
◆ Z4C
◆ Z4D
◆ Z4E
◆ Z4F
◆ Z50
◆ Z51
◆ Z52
◆ Z53
◆ Z54
◆ Z55
◆ Z56
◆ Z57
◆ Z58
◆ Z59
◆ Z5A
◆ Z5B
◆ Z5C
◆ Z5D
◆ Z5E
◆ Z5F
◆ Z60
◆ Z61
◆ Z62
◆ Z63
◆ Z64
◆ Z65
◆ Z66
◆ Z67
◆ Z68
◆ Z69
◆ Z6A
◆ Z6B
◆ Z6C
◆ Z6D
◆ Z6E
◆ Z6F
◆ Z70
◆ Z71
◆ Z72
◆ Z73
◆ Z74
◆ Z75
◆ Z76
◆ Z77
◆ Z78
◆ Z79
◆ Z7A
◆ Z7B
◆ Z7C
◆ Z7D
◆ Z7E
◆ Z7F
◆ Z80
◆ Z81
◆ Z82
◆ Z83
◆ Z84
◆ Z85
◆ Z86
◆ Z87
◆ Z88
◆ Z89
◆ Z8A
◆ Z8B
◆ Z8C
◆ Z8D
◆ Z8E
◆ Z8F
◆ Z90
◆ Z91
◆ Z92
◆ Z93
◆ Z94
◆ Z95
◆ Z96
◆ Z97
◆ Z98
◆ Z99
◆ Z9A
◆ Z9B
◆ Z9C
◆ Z9D
◆ Z9E
◆ Z9F
Function Documentation
◆ blake32()
|
static |
Definition at line 801 of file blake.c.
References sph_blake_small_context::buf, COMPRESS32, DECL_STATE32, memcpy(), sph_blake_small_context::ptr, READ_STATE32, SPH_T32, and WRITE_STATE32.
Referenced by blake32_close(), sph_blake224(), and sph_blake256().
◆ blake32_close()
|
static |
Definition at line 839 of file blake.c.
References blake32(), sph_blake_small_context::buf, sph_blake_small_context::H, sph_blake_small_context::ptr, SPH_C32, sph_enc32be(), sph_enc32be_aligned(), SPH_T32, sph_blake_small_context::T0, and sph_blake_small_context::T1.
Referenced by sph_blake224_addbits_and_close(), and sph_blake256_addbits_and_close().
◆ blake32_init()
|
static |
Definition at line 791 of file blake.c.
References sph_blake_small_context::H, memcpy(), sph_blake_small_context::ptr, sph_blake_small_context::S, sph_blake_small_context::T0, and sph_blake_small_context::T1.
Referenced by sph_blake224_init(), and sph_blake256_init().
◆ sph_blake224()
void sph_blake224 | ( | void * | cc, |
const void * | data, | ||
size_t | len | ||
) |
◆ sph_blake224_addbits_and_close()
void sph_blake224_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.
- Parameters
-
cc the BLAKE-224 context ub the extra bits n the number of extra bits (0 to 7) dst the destination buffer
Definition at line 1021 of file blake.c.
References blake32_close(), and sph_blake224_init().
Referenced by sph_blake224_close().
◆ sph_blake224_close()
void sph_blake224_close | ( | void * | cc, |
void * | dst | ||
) |
Terminate the current BLAKE-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.
- Parameters
-
cc the BLAKE-224 context dst the destination buffer
Definition at line 1014 of file blake.c.
References sph_blake224_addbits_and_close().
◆ sph_blake224_init()
void sph_blake224_init | ( | void * | cc | ) |
Initialize a BLAKE-224 context.
This process performs no memory allocation.
- Parameters
-
cc the BLAKE-224 context (pointer to a sph_blake224_context
)
Definition at line 1000 of file blake.c.
References blake32_init(), IV224, and salt_zero_small.
Referenced by sph_blake224_addbits_and_close().
◆ sph_blake256()
void sph_blake256 | ( | void * | cc, |
const void * | data, | ||
size_t | len | ||
) |
◆ sph_blake256_addbits_and_close()
void sph_blake256_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.
- Parameters
-
cc the BLAKE-256 context ub the extra bits n the number of extra bits (0 to 7) dst the destination buffer
Definition at line 1050 of file blake.c.
References blake32_close(), and sph_blake256_init().
Referenced by sph_blake256_close().
◆ sph_blake256_close()
void sph_blake256_close | ( | void * | cc, |
void * | dst | ||
) |
Terminate the current BLAKE-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.
- Parameters
-
cc the BLAKE-256 context dst the destination buffer
Definition at line 1043 of file blake.c.
References sph_blake256_addbits_and_close().
◆ sph_blake256_init()
void sph_blake256_init | ( | void * | cc | ) |
Initialize a BLAKE-256 context.
This process performs no memory allocation.
- Parameters
-
cc the BLAKE-256 context (pointer to a sph_blake256_context
)
Definition at line 1029 of file blake.c.
References blake32_init(), IV256, and salt_zero_small.
Referenced by sph_blake256_addbits_and_close().
Variable Documentation
◆ IV224
|
static |
◆ IV256
|
static |
◆ salt_zero_small
|
static |
Definition at line 788 of file blake.c.
Referenced by sph_blake224_init(), and sph_blake256_init().