AES-KW can only wrap a JWK key if its serialization happens to be 8*n bytes long

Hi,

I think that there are some omissions in how wrapping a JWK key should work. AES-KW in particular requires that input is 8*n bytes long, which is of course not guaranteed with JWK serialization.

Filed <https://www.w3.org/Bugs/Public/show_bug.cgi?id=24457>, my proposal is to pad JWK with spaces for AES-KW. Not sure if any other algorithms are similarly affected.

- WBR, Alexey Proskuryakov

Received on Friday, 31 January 2014 20:26:01 UTC