#include <config.h>
#include "digesthmac.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <gc.h>
Go to the source code of this file.
|
int | digest_md5_hmac (char *output, char secret[MD5LEN], const char *nonce, unsigned long nc, const char *cnonce, digest_md5_qop qop, const char *authzid, const char *digesturi, int rspauth, digest_md5_cipher cipher, char *kic, char *kis, char *kcc, char *kcs) |
|
◆ A2_POST
#define A2_POST ":00000000000000000000000000000000" |
◆ A2_PRE
#define A2_PRE "AUTHENTICATE:" |
◆ COLON
◆ DERIVE_CLIENT_CONFIDENTIALITY_KEY_STRING
#define DERIVE_CLIENT_CONFIDENTIALITY_KEY_STRING "Digest H(A1) to client-to-server sealing key magic constant" |
◆ DERIVE_CLIENT_CONFIDENTIALITY_KEY_STRING_LEN
#define DERIVE_CLIENT_CONFIDENTIALITY_KEY_STRING_LEN 59 |
◆ DERIVE_CLIENT_INTEGRITY_KEY_STRING
#define DERIVE_CLIENT_INTEGRITY_KEY_STRING "Digest session key to client-to-server signing key magic constant" |
◆ DERIVE_CLIENT_INTEGRITY_KEY_STRING_LEN
#define DERIVE_CLIENT_INTEGRITY_KEY_STRING_LEN 65 |
◆ DERIVE_SERVER_CONFIDENTIALITY_KEY_STRING
#define DERIVE_SERVER_CONFIDENTIALITY_KEY_STRING "Digest H(A1) to server-to-client sealing key magic constant" |
◆ DERIVE_SERVER_CONFIDENTIALITY_KEY_STRING_LEN
#define DERIVE_SERVER_CONFIDENTIALITY_KEY_STRING_LEN 59 |
◆ DERIVE_SERVER_INTEGRITY_KEY_STRING
#define DERIVE_SERVER_INTEGRITY_KEY_STRING "Digest session key to server-to-client signing key magic constant" |
◆ DERIVE_SERVER_INTEGRITY_KEY_STRING_LEN
#define DERIVE_SERVER_INTEGRITY_KEY_STRING_LEN 65 |
◆ HEXCHAR
#define HEXCHAR |
( |
|
c | ) |
((c & 0x0F) > 9 ? 'a' + (c & 0x0F) - 10 : '0' + (c & 0x0F)) |
◆ MD5LEN
◆ QOP_AUTH
◆ QOP_AUTH_CONF
#define QOP_AUTH_CONF "auth-conf" |
◆ QOP_AUTH_INT
#define QOP_AUTH_INT "auth-int" |
◆ digest_md5_hmac()
int digest_md5_hmac |
( |
char * |
output, |
|
|
char |
secret[MD5LEN], |
|
|
const char * |
nonce, |
|
|
unsigned long |
nc, |
|
|
const char * |
cnonce, |
|
|
digest_md5_qop |
qop, |
|
|
const char * |
authzid, |
|
|
const char * |
digesturi, |
|
|
int |
rspauth, |
|
|
digest_md5_cipher |
cipher, |
|
|
char * |
kic, |
|
|
char * |
kis, |
|
|
char * |
kcc, |
|
|
char * |
kcs |
|
) |
| |