libwebsockets
Lightweight C library for HTML5 websockets
lws-genhash.h File Reference

Go to the source code of this file.

Data Structures

struct  lws_genhash_ctx
 
struct  lws_genhmac_ctx
 

Macros

#define LWS_GENHASH_LARGEST   64
 

Enumerations

enum  lws_genhash_types {
  LWS_GENHASH_TYPE_UNKNOWN , LWS_GENHASH_TYPE_MD5 , LWS_GENHASH_TYPE_SHA1 , LWS_GENHASH_TYPE_SHA256 ,
  LWS_GENHASH_TYPE_SHA384 , LWS_GENHASH_TYPE_SHA512
}
 
enum  lws_genhmac_types { LWS_GENHMAC_TYPE_UNKNOWN , LWS_GENHMAC_TYPE_SHA256 , LWS_GENHMAC_TYPE_SHA384 , LWS_GENHMAC_TYPE_SHA512 }
 

Functions

LWS_VISIBLE LWS_EXTERN size_t LWS_WARN_UNUSED_RESULT lws_genhash_size (enum lws_genhash_types type)
 
LWS_VISIBLE LWS_EXTERN size_t LWS_WARN_UNUSED_RESULT lws_genhmac_size (enum lws_genhmac_types type)
 
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_genhash_init (struct lws_genhash_ctx *ctx, enum lws_genhash_types type)
 
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_genhash_update (struct lws_genhash_ctx *ctx, const void *in, size_t len)
 
LWS_VISIBLE LWS_EXTERN int lws_genhash_destroy (struct lws_genhash_ctx *ctx, void *result)
 
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_genhmac_init (struct lws_genhmac_ctx *ctx, enum lws_genhmac_types type, const uint8_t *key, size_t key_len)
 
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_genhmac_update (struct lws_genhmac_ctx *ctx, const void *in, size_t len)
 
LWS_VISIBLE LWS_EXTERN int lws_genhmac_destroy (struct lws_genhmac_ctx *ctx, void *result)