#include <stdint.h>
#include <string.h>
|
| #define | blk(block, i) |
| |
| #define | R0(v, w, x, y, z, i) |
| |
| #define | R1(v, w, x, y, z, i) |
| |
| #define | R2(v, w, x, y, z, i) |
| |
| #define | R3(v, w, x, y, z, i) |
| |
| #define | R4(v, w, x, y, z, i) |
| |
| #define | rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) |
| |
| #define | SHA1_DIGEST_SIZE 20 |
| |
◆ blk
◆ R0
| #define R0 |
( |
|
v, |
|
|
|
w, |
|
|
|
x, |
|
|
|
y, |
|
|
|
z, |
|
|
|
i |
|
) |
| |
Value:
static uint32_t blk0(CHAR64LONG16 *block, int i)
Definition at line 131 of file sha1.inl.
◆ R1
| #define R1 |
( |
|
v, |
|
|
|
w, |
|
|
|
x, |
|
|
|
y, |
|
|
|
z, |
|
|
|
i |
|
) |
| |
◆ R2
| #define R2 |
( |
|
v, |
|
|
|
w, |
|
|
|
x, |
|
|
|
y, |
|
|
|
z, |
|
|
|
i |
|
) |
| |
◆ R3
| #define R3 |
( |
|
v, |
|
|
|
w, |
|
|
|
x, |
|
|
|
y, |
|
|
|
z, |
|
|
|
i |
|
) |
| |
◆ R4
| #define R4 |
( |
|
v, |
|
|
|
w, |
|
|
|
x, |
|
|
|
y, |
|
|
|
z, |
|
|
|
i |
|
) |
| |
◆ rol
| #define rol |
( |
|
value, |
|
|
|
bits |
|
) |
| (((value) << (bits)) | ((value) >> (32 - (bits)))) |
◆ SHA1_DIGEST_SIZE
| #define SHA1_DIGEST_SIZE 20 |
◆ blk0()
| static uint32_t blk0 |
( |
CHAR64LONG16 * |
block, |
|
|
int |
i |
|
) |
| |
|
static |
◆ SHA1_Final()
| SHA_API void SHA1_Final |
( |
unsigned char * |
digest, |
|
|
SHA_CTX * |
context |
|
) |
| |
◆ SHA1_Init()
| SHA_API void SHA1_Init |
( |
SHA_CTX * |
context | ) |
|
◆ SHA1_Transform()
| static void SHA1_Transform |
( |
uint32_t |
state[5], |
|
|
const uint8_t |
buffer[64] |
|
) |
| |
|
static |
◆ SHA1_Update()
| SHA_API void SHA1_Update |
( |
SHA_CTX * |
context, |
|
|
const uint8_t * |
data, |
|
|
const uint32_t |
len |
|
) |
| |