| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
JOSE headers must include the "alg" and "enc" options in order to be
able to actually process and encrypted token.
Return appropriate messages if either is missing.
|
|
|
|
|
| |
People should not use JWSCore directly unless they know exactly what
they are doing. Added doc text to that regard.
|
|
|
|
|
| |
Make the function private as it is not supposed to be used directly,
rather deserialize() should be used.
|
|
|
|
|
|
|
|
|
|
|
|
| |
AES blocksize is always 16 regardles of key length naturally.
Fix the code to assume the proper blocksize and IV length.
Also add tests to check proper key length and add missing
A192KW and A256KW key wrapping algorythms.
Add tests to try encrypting with all AES key-length combinations.
Thanks to Jan Rusnacko for pointing out this flaw.
Signed-off-by: Simo Sorce <simo@redhat.com>
|
|
|
|
| |
Signed-off-by: Simo Sorce <simo@redhat.com>
|
|
|
|
|
|
|
| |
This way we have less confusion about what the function is supposed to
do and less code duplication.
Signed-off-by: Simo Sorce <simo@redhat.com>
|
|
|
|
|
|
|
|
| |
Allow the use of a JWE without protected headers.
Thanks to Jan Rusnacko for pointing out this flaw.
Signed-off-by: Simo Sorce <simo@redhat.com>
|
|
|
|
|
|
| |
Thanks to Jan Rusnacko for pointing out this flaw.
Signed-off-by: Simo Sorce <simo@redhat.com>
|
|
|
|
|
|
| |
Thanks to Jan Rusnacko for pointing out this flaw.
Signed-off-by: Simo Sorce <simo@redhat.com>
|
| |
|
|
|
|
| |
Also fix JWE JSON Serialization bug
|
|
|
|
| |
Fixes #2
|
|
|
|
|
|
|
| |
Implements:
draft-ietf-jose-json-web-encryption-40
plus Tests
|
|
|
|
|
|
|
|
|
| |
Implements:
draft-ietf-jose-json-web-signature-41
plus Tests
Signed-off-by: Simo Sorce <simo@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Implements:
draft-ietf-jose-json-web-key-41
plus Tests
Signed-off-by: Simo Sorce <simo@redhat.com>
|
|
Project for the implementation of the JOSE WG protocols
Add some commong functions.
Signed-off-by: Simo Sorce <simo@redhat.com>
|