13 #ifndef JABBERWERX_CRYPTO_SHA1_H
14 #define JABBERWERX_CRYPTO_SHA1_H
16 #include "../basics.h"
20 #define JW_SHA1_HASH_SIZE 20
123 const uint8_t *input,
251 const uint8_t *input,
struct _jw_hmac_sha1_ctx_int jw_hmac_sha1_ctx
Definition: sha1.h:27
JABBERWERX_API bool jw_sha1(const uint8_t *input, size_t input_len, uint8_t **output, size_t *output_len, jw_err *err)
#define JABBERWERX_API
Definition: basics.h:32
JABBERWERX_API bool jw_hmac_sha1_result(jw_hmac_sha1_ctx *ctx, uint8_t **output, size_t *output_len, jw_err *err)
JABBERWERX_API bool jw_hmac_sha1_input(jw_hmac_sha1_ctx *ctx, const uint8_t *input, size_t len, jw_err *err)
JABBERWERX_API bool jw_sha1_result(jw_sha1_ctx *ctx, uint8_t **output, size_t *output_len, jw_err *err)
JABBERWERX_API void jw_hmac_sha1_destroy(jw_hmac_sha1_ctx *ctx)
JABBERWERX_API bool jw_hmac_sha1(const uint8_t *input, size_t input_len, const uint8_t *key, size_t key_len, uint8_t **output, size_t *output_len, jw_err *err)
JABBERWERX_API bool jw_sha1_input(jw_sha1_ctx *ctx, const uint8_t *input, size_t len, jw_err *err)
JABBERWERX_API bool jw_hmac_sha1_reset(jw_hmac_sha1_ctx *ctx, const uint8_t *key, size_t key_len, jw_err *err)
struct _jw_sha1_ctx_int jw_sha1_ctx
Definition: sha1.h:24
JABBERWERX_API bool jw_sha1_create(jw_sha1_ctx **ctx, jw_err *err)
JABBERWERX_API jw_sha1_ctx * jw_sha1_reset(jw_sha1_ctx *ctx)
JABBERWERX_API bool jw_hmac_sha1_create(const uint8_t *key, size_t key_len, jw_hmac_sha1_ctx **ctx, jw_err *err)
JABBERWERX_API void jw_sha1_destroy(jw_sha1_ctx *ctx)