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 | SWAP(a, b) if (ext) { t = a; a = b; b = t; } |
#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. | |
static void | ripemd128_transform (uint32_t *state, const uint8_t buffer[64], int ext) |
static void | ripemd160_transform (uint32_t *state, const uint8_t buffer[64], int ext) |
av_cold int | av_ripemd_init (AVRIPEMD *ctx, int bits) |
Initialize RIPEMD hashing. | |
void | av_ripemd_update (AVRIPEMD *ctx, const uint8_t *data, unsigned int len) |
Update hash value. | |
void | av_ripemd_final (AVRIPEMD *ctx, uint8_t *digest) |
Finish hashing and output digest value. | |
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 91 of file ripemd.c.
Referenced by ripemd128_transform(), and ripemd160_transform().
#define R128_0 |
#define R128_16 |
#define R128_32 |
#define R128_48 |
#define ROTATE | ( | x, | |
y | |||
) |
#define R160_0 |
#define R160_16 |
#define R160_32 |
#define R160_48 |
#define R160_64 |
Definition at line 113 of file ripemd.c.
Referenced by av_ripemd_init().
Definition at line 242 of file ripemd.c.
Referenced by av_ripemd_init().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |