FFmpeg
|
#include <string.h>
#include "attributes.h"
#include "avutil.h"
#include "bswap.h"
#include "intreadwrite.h"
#include "ripemd.h"
#include "mem.h"
Go to the source code of this file.
Data Structures | |
struct | AVRIPEMD |
hash context More... | |
Macros | |
#define | rol(value, bits) ((value << bits) | (value >> (32 - bits))) |
#define | ROUND128_0_TO_15(a, b, c, d, e, f, g, h) |
#define | ROUND128_16_TO_31(a, b, c, d, e, f, g, h) |
#define | ROUND128_32_TO_47(a, b, c, d, e, f, g, h) |
#define | ROUND128_48_TO_63(a, b, c, d, e, f, g, h) |
#define | R128_0 |
#define | R128_16 |
#define | R128_32 |
#define | R128_48 |
#define | ROTATE(x, y) |
#define | ROUND160_0_TO_15(a, b, c, d, e, f, g, h, i, j) |
#define | ROUND160_16_TO_31(a, b, c, d, e, f, g, h, i, j) |
#define | ROUND160_32_TO_47(a, b, c, d, e, f, g, h, i, j) |
#define | ROUND160_48_TO_63(a, b, c, d, e, f, g, h, i, j) |
#define | ROUND160_64_TO_79(a, b, c, d, e, f, g, h, i, j) |
#define | R160_0 |
#define | R160_16 |
#define | R160_32 |
#define | R160_48 |
#define | R160_64 |
Functions | |
struct AVRIPEMD * | av_ripemd_alloc (void) |
Allocate an AVRIPEMD context. More... | |
static void | ripemd128_transform (uint32_t *state, const uint8_t buffer[64]) |
static void | ripemd256_transform (uint32_t *state, const uint8_t buffer[64]) |
static void | ripemd160_transform (uint32_t *state, const uint8_t buffer[64]) |
static void | ripemd320_transform (uint32_t *state, const uint8_t buffer[64]) |
av_cold int | av_ripemd_init (AVRIPEMD *ctx, int bits) |
Initialize RIPEMD hashing. More... | |
void | av_ripemd_update (AVRIPEMD *ctx, const uint8_t *data, unsigned int len) |
Update hash value. More... | |
void | av_ripemd_final (AVRIPEMD *ctx, uint8_t *digest) |
Finish hashing and output digest value. More... | |
Variables | |
const int | av_ripemd_size = sizeof(AVRIPEMD) |
static const uint32_t | KA [4] |
static const uint32_t | KB [4] |
static const int | ROTA [80] |
static const int | ROTB [80] |
static const int | WA [80] |
static const int | WB [80] |
Definition at line 90 of file ripemd.c.
Referenced by ripemd128_transform(), and ripemd256_transform().
Definition at line 95 of file ripemd.c.
Referenced by ripemd128_transform(), and ripemd256_transform().
Definition at line 100 of file ripemd.c.
Referenced by ripemd128_transform(), and ripemd256_transform().
Definition at line 105 of file ripemd.c.
Referenced by ripemd128_transform(), and ripemd256_transform().
#define R128_0 |
Definition at line 110 of file ripemd.c.
Referenced by ripemd128_transform(), and ripemd256_transform().
#define R128_16 |
Definition at line 116 of file ripemd.c.
Referenced by ripemd128_transform(), and ripemd256_transform().
#define R128_32 |
Definition at line 122 of file ripemd.c.
Referenced by ripemd128_transform(), and ripemd256_transform().
#define R128_48 |
Definition at line 128 of file ripemd.c.
Referenced by ripemd128_transform(), and ripemd256_transform().
Definition at line 256 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
Definition at line 261 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
Definition at line 266 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
Definition at line 271 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
Definition at line 276 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
#define R160_0 |
Definition at line 281 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
#define R160_16 |
Definition at line 288 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
#define R160_32 |
Definition at line 295 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
#define R160_48 |
Definition at line 302 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
#define R160_64 |
Definition at line 309 of file ripemd.c.
Referenced by ripemd160_transform(), and ripemd320_transform().
Definition at line 134 of file ripemd.c.
Referenced by av_ripemd_init().
Definition at line 191 of file ripemd.c.
Referenced by av_ripemd_init().
Definition at line 316 of file ripemd.c.
Referenced by av_ripemd_init().
Definition at line 388 of file ripemd.c.
Referenced by av_ripemd_init().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |