TuyaOS
结构体 | 宏定义 | 类型定义 | 函数
apr_sha1.h 文件参考

APR-UTIL SHA1 library 更多...

浏览源代码.

结构体

struct  apr_sha1_ctx_t
 

宏定义

#define APR_SHA1_DIGESTSIZE   20
 
#define APR_SHA1PW_ID   "{SHA}"
 
#define APR_SHA1PW_IDLEN   5
 

类型定义

typedef struct apr_sha1_ctx_t apr_sha1_ctx_t
 

函数

void apr_sha1_final (unsigned char digest[20], apr_sha1_ctx_t *context)
 
void apr_sha1_init (apr_sha1_ctx_t *context)
 
void apr_sha1_update (apr_sha1_ctx_t *context, const char *input, unsigned int inputLen)
 
void apr_sha1_update_binary (apr_sha1_ctx_t *context, const unsigned char *input, unsigned int inputLen)
 
void HMAC_SHA1 (unsigned char hmac[20], const unsigned char *key, int key_len, const unsigned char *message, int message_len)
 

详细描述

APR-UTIL SHA1 library

宏定义说明

◆ APR_SHA1_DIGESTSIZE

#define APR_SHA1_DIGESTSIZE   20

size of the SHA1 DIGEST

◆ APR_SHA1PW_ID

#define APR_SHA1PW_ID   "{SHA}"

Define the Magic String prefix that identifies a password as being hashed using our algorithm.

◆ APR_SHA1PW_IDLEN

#define APR_SHA1PW_IDLEN   5

length of the SHA Password

类型定义说明

◆ apr_sha1_ctx_t

函数说明

◆ apr_sha1_final()

void apr_sha1_final ( unsigned char  digest[20],
apr_sha1_ctx_t context 
)

Finish computing the SHA digest

参数
digestthe output buffer in which to store the digest
contextThe context to finalize

◆ apr_sha1_init()

void apr_sha1_init ( apr_sha1_ctx_t context)

Initialize the SHA digest

参数
contextThe SHA context to initialize

◆ apr_sha1_update()

void apr_sha1_update ( apr_sha1_ctx_t context,
const char *  input,
unsigned int  inputLen 
)

Update the SHA digest

参数
contextThe SHA1 context to update
inputThe buffer to add to the SHA digest
inputLenThe length of the input buffer

◆ apr_sha1_update_binary()

void apr_sha1_update_binary ( apr_sha1_ctx_t context,
const unsigned char *  input,
unsigned int  inputLen 
)

Update the SHA digest with binary data

参数
contextThe SHA1 context to update
inputThe buffer to add to the SHA digest
inputLenThe length of the input buffer