But the RFC says the MD5 only applies to the message body, not entire 
message, am I wrong?

<snip>
Thus the value of A2 is

INVITE:sip:[EMAIL PROTECTED]:H(entity-body)

H(entity-body) is given by

H(v=0
o=bob 2890844526 2890844526 IN IP4 media.biloxi.com
s=
c=IN IP4 media.biloxi.com
t=0 0
m=audio 49170 RTP/AVP 0
a=rtpmap:0 PCMU/8000
m=video 51372 RTP/AVP 31
a=rtpmap:31 H261/90000
m=video 53000 RTP/AVP 32
a=rtpmap:32 MPV/90000
)
</snip>
Jo Hermans 写道:
> For the MD5 and MD5-sess algorithms, H(data) == MD5(data). Just take
> the entire message (headers included), and calculate a MD5 hash.
>
> A good aid in implementing all digest-authentication algorithms is
> <http://www.softarmor.com/wgdb/docs/draft-smith-sip-auth-examples-00.txt>. 
>
> It contains many examples worked out step by step.
>
> On 3/24/07, Bin Chen <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> In RFC 2617, if the qop is auth-int, it need to first calculate
>> H(entity-body) for A2, but I didn't find how to do it? Else where I need
>> to check?
>>
>> Thanks a lot!
>>
>> abai
>> _______________________________________________
>> Sip-implementors mailing list
>> [email protected]
>> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
>>
>
>

_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to