APR-UTIL SHA1 library
更多...
浏览源代码.
◆ APR_SHA1_DIGESTSIZE
| #define APR_SHA1_DIGESTSIZE 20 |
◆ 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
- 参数
-
| digest | the output buffer in which to store the digest |
| context | The context to finalize |
◆ apr_sha1_init()
Initialize the SHA digest
- 参数
-
| context | The 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
- 参数
-
| context | The SHA1 context to update |
| input | The buffer to add to the SHA digest |
| inputLen | The 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
- 参数
-
| context | The SHA1 context to update |
| input | The buffer to add to the SHA digest |
| inputLen | The length of the input buffer |