|
gsasl
1.8.0
|
Go to the source code of this file.
Functions | |
| int | gsasl_nonce (char *data, size_t datalen) |
| int | gsasl_random (char *data, size_t datalen) |
| int | gsasl_md5 (const char *in, size_t inlen, char *out[16]) |
| int | gsasl_hmac_md5 (const char *key, size_t keylen, const char *in, size_t inlen, char *outhash[16]) |
| int | gsasl_sha1 (const char *in, size_t inlen, char *out[20]) |
| int | gsasl_hmac_sha1 (const char *key, size_t keylen, const char *in, size_t inlen, char *outhash[20]) |
| int gsasl_hmac_md5 | ( | const char * | key, |
| size_t | keylen, | ||
| const char * | in, | ||
| size_t | inlen, | ||
| char * | outhash[16] | ||
| ) |
gsasl_hmac_md5:
| key | input character array with key to use. |
| keylen | length of input character array with key to use. |
| in | input character array of data to hash. |
| inlen | length of input character array of data to hash. |
| outhash | newly allocated character array with keyed hash of data. |
Compute keyed checksum of data using HMAC-MD5. The buffer must be deallocated by the caller.
Return value: Returns GSASL_OK iff successful.
| int gsasl_hmac_sha1 | ( | const char * | key, |
| size_t | keylen, | ||
| const char * | in, | ||
| size_t | inlen, | ||
| char * | outhash[20] | ||
| ) |
gsasl_hmac_sha1:
| key | input character array with key to use. |
| keylen | length of input character array with key to use. |
| in | input character array of data to hash. |
| inlen | length of input character array of data to hash. |
| outhash | newly allocated character array with keyed hash of data. |
Compute keyed checksum of data using HMAC-SHA1. The buffer must be deallocated by the caller.
Return value: Returns GSASL_OK iff successful.
Since: 1.3
| int gsasl_md5 | ( | const char * | in, |
| size_t | inlen, | ||
| char * | out[16] | ||
| ) |
gsasl_md5:
| in | input character array of data to hash. |
| inlen | length of input character array of data to hash. |
| out | newly allocated character array with hash of data. |
Compute hash of data using MD5. The buffer must be deallocated by the caller.
Return value: Returns GSASL_OK iff successful.
| int gsasl_nonce | ( | char * | data, |
| size_t | datalen | ||
| ) |
| int gsasl_random | ( | char * | data, |
| size_t | datalen | ||
| ) |
| int gsasl_sha1 | ( | const char * | in, |
| size_t | inlen, | ||
| char * | out[20] | ||
| ) |
gsasl_sha1:
| in | input character array of data to hash. |
| inlen | length of input character array of data to hash. |
| out | newly allocated character array with hash of data. |
Compute hash of data using SHA1. The buffer must be deallocated by the caller.
Return value: Returns GSASL_OK iff successful.
Since: 1.3
1.7.6.1