Changeset View
Changeset View
Standalone View
Standalone View
sys/crypto/sha2/sha512t.h
Show All 37 Lines | |||||
#define SHA512_224_DIGEST_LENGTH 28 | #define SHA512_224_DIGEST_LENGTH 28 | ||||
#define SHA512_224_DIGEST_STRING_LENGTH (SHA512_224_DIGEST_LENGTH * 2 + 1) | #define SHA512_224_DIGEST_STRING_LENGTH (SHA512_224_DIGEST_LENGTH * 2 + 1) | ||||
#define SHA512_256_DIGEST_LENGTH 32 | #define SHA512_256_DIGEST_LENGTH 32 | ||||
#define SHA512_256_DIGEST_STRING_LENGTH (SHA512_256_DIGEST_LENGTH * 2 + 1) | #define SHA512_256_DIGEST_STRING_LENGTH (SHA512_256_DIGEST_LENGTH * 2 + 1) | ||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
/* Ensure libmd symbols do not clash with libcrypto */ | /* Ensure libmd symbols do not clash with libcrypto */ | ||||
#ifndef _STANDALONE | |||||
#ifndef SHA512_224_Init | #ifndef SHA512_224_Init | ||||
#define SHA512_224_Init _libmd_SHA512_224_Init | #define SHA512_224_Init _libmd_SHA512_224_Init | ||||
#endif | #endif | ||||
#ifndef SHA512_224_Update | #ifndef SHA512_224_Update | ||||
#define SHA512_224_Update _libmd_SHA512_224_Update | #define SHA512_224_Update _libmd_SHA512_224_Update | ||||
#endif | #endif | ||||
#ifndef SHA512_224_Final | #ifndef SHA512_224_Final | ||||
#define SHA512_224_Final _libmd_SHA512_224_Final | #define SHA512_224_Final _libmd_SHA512_224_Final | ||||
Show All 40 Lines | |||||
#define SHA512_256_Data _libmd_SHA512_256_Data | #define SHA512_256_Data _libmd_SHA512_256_Data | ||||
#endif | #endif | ||||
#ifndef SHA512_256_Transform | #ifndef SHA512_256_Transform | ||||
#define SHA512_256_Transform _libmd_SHA512_256_Transform | #define SHA512_256_Transform _libmd_SHA512_256_Transform | ||||
#endif | #endif | ||||
#ifndef SHA512_256_version | #ifndef SHA512_256_version | ||||
#define SHA512_256_version _libmd_SHA512_256_version | #define SHA512_256_version _libmd_SHA512_256_version | ||||
#endif | |||||
#endif | #endif | ||||
void SHA512_224_Init(SHA512_CTX *); | void SHA512_224_Init(SHA512_CTX *); | ||||
void SHA512_224_Update(SHA512_CTX *, const void *, size_t); | void SHA512_224_Update(SHA512_CTX *, const void *, size_t); | ||||
void SHA512_224_Final(unsigned char [static SHA512_224_DIGEST_LENGTH], SHA512_CTX *); | void SHA512_224_Final(unsigned char [static SHA512_224_DIGEST_LENGTH], SHA512_CTX *); | ||||
#ifndef _KERNEL | #ifndef _KERNEL | ||||
char *SHA512_224_End(SHA512_CTX *, char *); | char *SHA512_224_End(SHA512_CTX *, char *); | ||||
char *SHA512_224_Data(const void *, unsigned int, char *); | char *SHA512_224_Data(const void *, unsigned int, char *); | ||||
Show All 16 Lines |