![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#include <windows.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <ctype.h>
#include <math.h>
#include <wctype.h>
#include <wchar.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <locale.h>
#include <signal.h>
#include <limits.h>
#include <float.h>
#include <iso646.h>
#include <assert.h>
#include "sha.h"
Macros | |
#define | U64(C) |
#define | B(x, j) |
#define | PULL64(x) |
#define | ROTR(x, s) |
#define | Sigma0(x) |
#define | Sigma1(x) |
#define | sigma0(x) |
#define | sigma1(x) |
#define | Ch(x, y, z) |
#define | Maj(x, y, z) |
#define | ROUND_00_15(i, a, b, c, d, e, f, g, h) |
#define | ROUND_16_80(i, j, a, b, c, d, e, f, g, h, X) |
Typedefs | |
typedef void *(* | memset_t) (void *, int, size_t) |
Functions | |
int | sha512_224_init (SHA512_CTX *c) |
int | sha512_256_init (SHA512_CTX *c) |
int | SHA384_Init (SHA512_CTX *c) |
int | SHA512_Init (SHA512_CTX *c) |
int | SHA512_Final (unsigned char *md, SHA512_CTX *c) |
int | SHA384_Final (unsigned char *md, SHA512_CTX *c) |
int | SHA512_Update (SHA512_CTX *c, const void *_data, size_t len) |
int | SHA384_Update (SHA512_CTX *c, const void *data, size_t len) |
void | SHA512_Transform (SHA512_CTX *c, const unsigned char *data) |
unsigned char * | SHA384 (const unsigned char *d, size_t n, unsigned char *md) |
unsigned char * | SHA512 (const unsigned char *d, size_t n, unsigned char *md) |
void * | sha512_init_k () |
void | sha512_update_k (void *ctx, unsigned char *buffer_k, unsigned int len_k) |
void | sha512_final_k (void *ctx, unsigned char *array_digest_64_bytes) |
void | get_sha_512_as_an_array_of_bytes_k (unsigned char *buffer_k, unsigned int len_k, unsigned char *array_digest_k) |
void | get_sha_512_as_string_k (unsigned char *buffer_k, unsigned int len_k, unsigned char *digest_k) |
#define B | ( | x, | |
j ) |
#define Ch | ( | x, | |
y, | |||
z ) |
#define Maj | ( | x, | |
y, | |||
z ) |
#define PULL64 | ( | x | ) |
#define ROTR | ( | x, | |
s ) |
#define Sigma0 | ( | x | ) |
typedef void *(* memset_t) (void *, int, size_t) |
void get_sha_512_as_an_array_of_bytes_k | ( | unsigned char * | buffer_k, |
unsigned int | len_k, | ||
unsigned char * | array_digest_k ) |
buffer_k - the input buffer t retrieve the SHA-512 len_k - the size of the buffer array_digest_k - the 64 bytes to hold the digest
void get_sha_512_as_string_k | ( | unsigned char * | buffer_k, |
unsigned int | len_k, | ||
unsigned char * | digest_k ) |
buffer_k - the input buffer t retrieve the SHA-512 len_k - the size of the buffer digest_k - the 129 bytes array of unsigned char for the output digest, it is 128 for the digest plus 1 for the end of string character
unsigned char * SHA384 | ( | const unsigned char * | d, |
size_t | n, | ||
unsigned char * | md ) |
int SHA384_Final | ( | unsigned char * | md, |
SHA512_CTX * | c ) |
int SHA384_Init | ( | SHA512_CTX * | c | ) |
int SHA384_Update | ( | SHA512_CTX * | c, |
const void * | data, | ||
size_t | len ) |
unsigned char * SHA512 | ( | const unsigned char * | d, |
size_t | n, | ||
unsigned char * | md ) |
int sha512_224_init | ( | SHA512_CTX * | c | ) |
int sha512_256_init | ( | SHA512_CTX * | c | ) |
int SHA512_Final | ( | unsigned char * | md, |
SHA512_CTX * | c ) |
void sha512_final_k | ( | void * | ctx, |
unsigned char * | array_digest_64_bytes ) |
int SHA512_Init | ( | SHA512_CTX * | c | ) |
void * sha512_init_k | ( | void | ) |
void SHA512_Transform | ( | SHA512_CTX * | c, |
const unsigned char * | data ) |
int SHA512_Update | ( | SHA512_CTX * | c, |
const void * | _data, | ||
size_t | len ) |
void sha512_update_k | ( | void * | ctx, |
unsigned char * | buffer_k, | ||
unsigned int | len_k ) |