Commit a1ae8597 authored by Simo Sorce's avatar Simo Sorce

Fix typo in accessing dictionary

Signed-off-by: default avatarSimo Sorce <simo@redhat.com>

Fixes #13
parent 8352a057
......@@ -616,7 +616,7 @@ class JWE(object):
for invalid in 'aad', 'unprotected':
if invalid in self.objects:
raise InvalidJWEOperation("Can't use compact encoding")
if 'recipiens' in self.objects:
if 'recipients' in self.objects:
if len(self.objects['recipients']) != 1:
raise InvalidJWEOperation("Invalid number of recipients")
rec = self.objects['recipients'][0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment