libbtc
bitcoinclibrary
|
Go to the source code of this file.
Macros | |
#define | ROL(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) |
#define | F(x, y, z) ((x) ^ (y) ^ (z)) |
#define | G(x, y, z) (((x) & (y)) | (~(x) & (z))) |
#define | H(x, y, z) (((x) | ~(y)) ^ (z)) |
#define | IQ(x, y, z) (((x) & (z)) | ((y) & ~(z))) |
#define | J(x, y, z) ((x) ^ ((y) | ~(z))) |
#define | FF(a, b, c, d, e, x, s) |
#define | GG(a, b, c, d, e, x, s) |
#define | HH(a, b, c, d, e, x, s) |
#define | II(a, b, c, d, e, x, s) |
#define | JJ(a, b, c, d, e, x, s) |
#define | FFF(a, b, c, d, e, x, s) |
#define | GGG(a, b, c, d, e, x, s) |
#define | HHH(a, b, c, d, e, x, s) |
#define | III(a, b, c, d, e, x, s) |
#define | JJJ(a, b, c, d, e, x, s) |
Functions | |
static void | compress (uint32_t *MDbuf, uint32_t *X) |
void | ripemd160 (const uint8_t *msg, uint32_t msg_len, uint8_t *hash) |
#define F | ( | x, | |
y, | |||
z | |||
) | ((x) ^ (y) ^ (z)) |
Definition at line 31 of file ripemd160.c.
#define FF | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 37 of file ripemd160.c.
Referenced by compress().
#define FFF | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 67 of file ripemd160.c.
Referenced by compress().
#define G | ( | x, | |
y, | |||
z | |||
) | (((x) & (y)) | (~(x) & (z))) |
Definition at line 32 of file ripemd160.c.
#define GG | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 43 of file ripemd160.c.
Referenced by compress().
#define GGG | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 73 of file ripemd160.c.
Referenced by compress().
#define H | ( | x, | |
y, | |||
z | |||
) | (((x) | ~(y)) ^ (z)) |
Definition at line 33 of file ripemd160.c.
#define HH | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 49 of file ripemd160.c.
Referenced by compress().
#define HHH | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 79 of file ripemd160.c.
Referenced by compress().
#define II | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 55 of file ripemd160.c.
Referenced by compress().
#define III | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 85 of file ripemd160.c.
Referenced by compress().
#define IQ | ( | x, | |
y, | |||
z | |||
) | (((x) & (z)) | ((y) & ~(z))) |
Definition at line 34 of file ripemd160.c.
#define J | ( | x, | |
y, | |||
z | |||
) | ((x) ^ ((y) | ~(z))) |
Definition at line 35 of file ripemd160.c.
#define JJ | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 61 of file ripemd160.c.
Referenced by compress().
#define JJJ | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
x, | |||
s | |||
) |
Definition at line 91 of file ripemd160.c.
Referenced by compress().
#define ROL | ( | x, | |
n | |||
) | (((x) << (n)) | ((x) >> (32 - (n)))) |
Copyright (c) 2013-2014 Tomas Dzetkulic Copyright (c) 2013-2014 Pavol Rusnak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition at line 29 of file ripemd160.c.
|
static |
void ripemd160 | ( | const uint8_t * | msg, |
uint32_t | msg_len, | ||
uint8_t * | hash | ||
) |
Copyright (c) 2013-2014 Tomas Dzetkulic Copyright (c) 2013-2014 Pavol Rusnak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition at line 292 of file ripemd160.c.
References compress().
Referenced by btc_hdnode_private_ckd(), btc_hdnode_public_ckd(), and btc_pubkey_get_hash160().