|
RetroArch
|
#include <string.h>#include <stdio.h>#include <unistd.h>#include <rhash.h>#include <retro_miscellaneous.h>#include <retro_endianness.h>#include <streams/file_stream.h>Classes | |
| struct | sha256_ctx |
Macros | |
| #define | LSL32(x, n) ((uint32_t)(x) << (n)) |
| #define | LSR32(x, n) ((uint32_t)(x) >> (n)) |
| #define | ROR32(x, n) (LSR32(x, n) | LSL32(x, 32 - (n))) |
| #define | SHA1CircularShift(bits, word) ((((word) << (bits)) & 0xFFFFFFFF) | ((word) >> (32-(bits)))) |
Functions | |
| static void | sha256_init (struct sha256_ctx *p) |
| static void | sha256_block (struct sha256_ctx *p) |
| static void | sha256_chunk (struct sha256_ctx *p, const uint8_t *s, unsigned len) |
| static void | sha256_final (struct sha256_ctx *p) |
| static void | sha256_subhash (struct sha256_ctx *p, uint32_t *t) |
| void | sha256_hash (char *s, const uint8_t *in, size_t size) |
| uint32_t | crc32_adjust (uint32_t checksum, uint8_t input) |
| uint32_t | crc32_calculate (const uint8_t *data, size_t length) |
| static void | SHA1Reset (SHA1Context *context) |
| static void | SHA1ProcessMessageBlock (SHA1Context *context) |
| static void | SHA1PadMessage (SHA1Context *context) |
| static int | SHA1Result (SHA1Context *context) |
| static void | SHA1Input (SHA1Context *context, const unsigned char *message_array, unsigned length) |
| int | sha1_calculate (const char *path, char *result) |
| uint32_t | djb2_calculate (const char *str) |
Variables | |
| static const uint32_t | T_H [8] |
| static const uint32_t | T_K [64] |
| static const uint32_t | crc32_hash_table [256] |
| #define SHA1CircularShift | ( | bits, | |
| word | |||
| ) | ((((word) << (bits)) & 0xFFFFFFFF) | ((word) >> (32-(bits)))) |
| int sha1_calculate | ( | const char * | path, |
| char * | result | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
sha256_hash: : Output. : Input. : Size of .
Hashes SHA256 and outputs a human readable string.
|
static |
|
static |
1.8.15