lilliput-ae-reference-implementation

Implementations of Lilliput-AE submitted to the NIST LWC standardization process
git clone https://git.kevinlegouguec.net/lilliput-ae-reference-implementation
Log | Files | Refs | README

commit a7abd1a33ca68e2e2db59332b612db69ffb31496
parent 417ac09668ea124245dbac0084608d9c396f5a76
Author: Kévin Le Gouguec <kevin.legouguec@airbus.com>
Date:   Thu, 14 Mar 2019 16:30:27 +0100

[implem-python] Gestion de l'échec de déchiffrement dans genkat_aead

Ce serait mieux si l'API renvoyait une exception… Un jour.

Diffstat:
Mpython/genkat_aead.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/genkat_aead.py b/python/genkat_aead.py @@ -28,8 +28,8 @@ class DecryptionError(Exception): def __str__(self): return '({s.mode} / {s.keylen}) Expected {exp}; got {act}'.format( s=self, - exp=bstr(self.expected), - act=bstr(self.actual) + exp=bstr(self.expected) if self.expected is not None else 'NONE', + act=bstr(self.actual) if self.actual is not None else 'NONE' )