On Wed, 2013-05-22 at 16:34 +1000, Manger, James H wrote: > Ludwig, > > > In section B.3 the length of the AAD is 848 bits, but the AAL value is > > encoded to 0x380 (which is 896), or have I missed something? > > It is encoded as [0, 0, 0, 0, 0, 0, 3, 80] — an array of 8 bytes shows as > decimal numbers. > 3 * 256 + 80 = 848 > The digits '80' are decimal, not hex. > > Showing binary quantities as arrays of decimal numbers is awful. But I guess > the editors like it because it is JSON :( > > -- > James Manger
In that case there is an inconsistency with draft-ietf-jose-json-web-algorithms-10 section C.1 and C.2 Where in both cases A is 42 bytes long (= 336 bits) and the AL is given as [...,01, 50] = 1*256+50 = 306 Regards, Ludwig Seitz -- Ludwig Seitz, PhD SICS Swedish ICT AB Ideon Science Park Building Beta 2 Scheelevägen 17 SE-223 70 Lund Phone +46(0)70-349 92 51 http://www.sics.se
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ jose mailing list [email protected] https://www.ietf.org/mailman/listinfo/jose
