Re: Content-Integrity header

I was just looking at the spec to make sure it was still in.

Specifying digest and MAC values is exactly what I intended the
trailer in chunked encoding to be used for.

       Chunked-Body   = *chunk
                        last-chunk
                        trailer
                        CRLF
       chunk          = chunk-size [ chunk-extension ] CRLF
                        chunk-data CRLF
       chunk-size     = 1*HEX
       last-chunk     = 1*("0") [ chunk-extension ] CRLF
       chunk-extension= *( ";" chunk-ext-name [ "=" chunk-ext-val ] )
       chunk-ext-name = token
       chunk-ext-val  = token | quoted-string
       chunk-data     = chunk-size(OCTET)
       trailer        = *(entity-header CRLF)

So given that we have Digest: defined as a header, should we try to
work from that or add in a separate header for MAC?

I prefer the second given where we are.

On Fri, Jul 6, 2012 at 10:17 PM, Martin Thomson
<martin.thomson@gmail.com> wrote:
> On 6 July 2012 16:23, James M Snell <jasnell@gmail.com> wrote:
>> 2. The performance impact of calculating the digest needs to be
>> carefully considered. I'd rather not be required to buffer a full
>> representation in memory all the time just to calculate a header
>
> Trailer: Digest



-- 
Website: http://hallambaker.com/

Received on Saturday, 7 July 2012 02:38:14 UTC