mpdavis / python-jose

A JOSE implementation in Python
MIT License
1.55k stars 237 forks source link

Use correct iv size (#281) #354

Closed jkamp-aws closed 5 months ago

jkamp-aws commented 5 months ago

Use a 12 byte IV for GCM based algorithms and 16 byte IV for CBC based ones. This makes a JWE compatible with other libraries based on OpenSSL which can only use a 12 byte IV for GCM.