72 #if !defined (PLIBSYS_H_INSIDE) && !defined (PLIBSYS_COMPILATION) 73 # error "Header files shouldn't be included directly, consider using <plibsys.h> instead." 76 #ifndef PLIBSYS_HEADER_PCRYPTOHASH_H 77 #define PLIBSYS_HEADER_PCRYPTOHASH_H P_LIB_API void p_crypto_hash_reset(PCryptoHash *hash)
Resets a hash state.
#define P_END_DECLS
Closes .h file declarations to be exported as C functions, should be always used after P_BEGIN_DECLS...
P_LIB_API void p_crypto_hash_free(PCryptoHash *hash)
Frees a previously initialized hash context.
P_LIB_API pssize p_crypto_hash_get_length(const PCryptoHash *hash)
Gets a hash digest length depending on its type.
P_LIB_API PCryptoHash * p_crypto_hash_new(PCryptoHashType type)
Initializes a new PCryptoHash context.
enum PCryptoHashType_ PCryptoHashType
Cryptographic hash function types for PCryptoHash.
char pchar
Type for a char.
P_LIB_API pchar * p_crypto_hash_get_string(PCryptoHash *hash)
Gets a hash in a hexidemical representation.
GOST (R 34.11-94) hash function.
unsigned __int64 psize
Type for a platform independent size_t.
P_LIB_API PCryptoHashType p_crypto_hash_get_type(const PCryptoHash *hash)
Gets a hash function type.
unsigned char puchar
Type for an unsigned char.
P_LIB_API void p_crypto_hash_get_digest(PCryptoHash *hash, puchar *buf, psize *len)
Gets a hash in a raw representation.
#define P_LIB_API
Exports a symbol from a shared library.
PCryptoHashType_
Cryptographic hash function types for PCryptoHash.
P_LIB_API void p_crypto_hash_update(PCryptoHash *hash, const puchar *data, psize len)
Adds a new chunk of data for hashing.
struct PCryptoHash_ PCryptoHash
Opaque data structure for handling a cryptographic hash context.
signed __int64 pssize
Type for a platform independent signed size_t.
#define P_BEGIN_DECLS
Starts .h file declarations to be exported as C functions.