OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [athttpd/] [current/] [include/] [digcalc.h] - Blame information for rev 856

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#define HASHLEN 16
2
typedef char HASH[HASHLEN];
3
#define HASHHEXLEN 32
4
typedef char HASHHEX[HASHHEXLEN+1];
5
#define IN
6
#define OUT
7
 
8
/* calculate H(A1) as per HTTP Digest spec */
9
void DigestCalcHA1(
10
    IN char * pszAlg,
11
    IN char * pszUserName,
12
    IN char * pszRealm,
13
    IN char * pszPassword,
14
    IN char * pszNonce,
15
    IN char * pszCNonce,
16
    OUT HASHHEX SessionKey
17
    );
18
 
19
/* calculate request-digest/response-digest as per HTTP Digest spec */
20
void DigestCalcResponse(
21
    IN HASHHEX HA1,           /* H(A1) */
22
    IN char * pszNonce,       /* nonce from server */
23
    IN char * pszNonceCount,  /* 8 hex digits */
24
    IN char * pszCNonce,      /* client nonce */
25
    IN char * pszQop,         /* qop-value: "", "auth", "auth-int" */
26
    IN char * pszMethod,      /* method from the request */
27
    IN char * pszDigestUri,   /* requested URL */
28
    IN HASHHEX HEntity,       /* H(entity body) if qop="auth-int" */
29
    OUT HASHHEX Response      /* request-digest or response-digest */
30
    );

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.