#include <cstdint>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
Go to the source code of this file.
|
static uint32_t | blk (const uint32_t block[BLOCK_INTS], const size_t i) |
|
static void | buffer_to_block (const std::string &buffer, uint32_t block[BLOCK_INTS]) |
|
static void | R0 (const uint32_t block[BLOCK_INTS], const uint32_t v, uint32_t &w, const uint32_t x, const uint32_t y, uint32_t &z, const size_t i) |
|
static void | R1 (uint32_t block[BLOCK_INTS], const uint32_t v, uint32_t &w, const uint32_t x, const uint32_t y, uint32_t &z, const size_t i) |
|
static void | R2 (uint32_t block[BLOCK_INTS], const uint32_t v, uint32_t &w, const uint32_t x, const uint32_t y, uint32_t &z, const size_t i) |
|
static void | R3 (uint32_t block[BLOCK_INTS], const uint32_t v, uint32_t &w, const uint32_t x, const uint32_t y, uint32_t &z, const size_t i) |
|
static void | R4 (uint32_t block[BLOCK_INTS], const uint32_t v, uint32_t &w, const uint32_t x, const uint32_t y, uint32_t &z, const size_t i) |
|
static void | reset (uint32_t digest[], std::string &buffer, uint64_t &transforms) |
|
static uint32_t | rol (const uint32_t value, const size_t bits) |
|
static void | transform (uint32_t digest[], uint32_t block[BLOCK_INTS], uint64_t &transforms) |
|
◆ blk()
static uint32_t blk |
( |
const uint32_t |
block[BLOCK_INTS], |
|
|
const size_t |
i |
|
) |
| |
|
inlinestatic |
◆ buffer_to_block()
static void buffer_to_block |
( |
const std::string & |
buffer, |
|
|
uint32_t |
block[BLOCK_INTS] |
|
) |
| |
|
inlinestatic |
◆ R0()
static void R0 |
( |
const uint32_t |
block[BLOCK_INTS], |
|
|
const uint32_t |
v, |
|
|
uint32_t & |
w, |
|
|
const uint32_t |
x, |
|
|
const uint32_t |
y, |
|
|
uint32_t & |
z, |
|
|
const size_t |
i |
|
) |
| |
|
inlinestatic |
◆ R1()
static void R1 |
( |
uint32_t |
block[BLOCK_INTS], |
|
|
const uint32_t |
v, |
|
|
uint32_t & |
w, |
|
|
const uint32_t |
x, |
|
|
const uint32_t |
y, |
|
|
uint32_t & |
z, |
|
|
const size_t |
i |
|
) |
| |
|
inlinestatic |
◆ R2()
static void R2 |
( |
uint32_t |
block[BLOCK_INTS], |
|
|
const uint32_t |
v, |
|
|
uint32_t & |
w, |
|
|
const uint32_t |
x, |
|
|
const uint32_t |
y, |
|
|
uint32_t & |
z, |
|
|
const size_t |
i |
|
) |
| |
|
inlinestatic |
◆ R3()
static void R3 |
( |
uint32_t |
block[BLOCK_INTS], |
|
|
const uint32_t |
v, |
|
|
uint32_t & |
w, |
|
|
const uint32_t |
x, |
|
|
const uint32_t |
y, |
|
|
uint32_t & |
z, |
|
|
const size_t |
i |
|
) |
| |
|
inlinestatic |
◆ R4()
static void R4 |
( |
uint32_t |
block[BLOCK_INTS], |
|
|
const uint32_t |
v, |
|
|
uint32_t & |
w, |
|
|
const uint32_t |
x, |
|
|
const uint32_t |
y, |
|
|
uint32_t & |
z, |
|
|
const size_t |
i |
|
) |
| |
|
inlinestatic |
◆ reset()
static void reset |
( |
uint32_t |
digest[], |
|
|
std::string & |
buffer, |
|
|
uint64_t & |
transforms |
|
) |
| |
|
inlinestatic |
◆ rol()
static uint32_t rol |
( |
const uint32_t |
value, |
|
|
const size_t |
bits |
|
) |
| |
|
inlinestatic |
◆ transform()
static void transform |
( |
uint32_t |
digest[], |
|
|
uint32_t |
block[BLOCK_INTS], |
|
|
uint64_t & |
transforms |
|
) |
| |
|
inlinestatic |
◆ BLOCK_BYTES
◆ BLOCK_INTS
const size_t BLOCK_INTS = 16 |
|
static |