From 0435a3e3100b7f998bc1d24eafe6a8967da957b1 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 18 Mar 2015 13:06:30 -0400 Subject: Allow unknown key parameters Thanks to Jan Rusnacko for pointing out this flaw. Signed-off-by: Simo Sorce --- jwcrypto/tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'jwcrypto/tests.py') diff --git a/jwcrypto/tests.py b/jwcrypto/tests.py index e17a295..888ad39 100644 --- a/jwcrypto/tests.py +++ b/jwcrypto/tests.py @@ -634,3 +634,11 @@ class TestJWE(unittest.TestCase): def test_A5(self): E = jwe.JWE() E.deserialize(E_A5_ex) + + +class ConformanceTests(unittest.TestCase): + + def test_unknown_key_params(self): + key = jwk.JWK(kty='oct', k='secret', unknown='mystery') + # pylint: disable=protected-access + self.assertEqual('mystery', key._unknown['unknown']) -- cgit