diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-25 10:35:27 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-03-25 10:35:27 +0100 |
| commit | e9682e5ff9946a018e00f513f58b7c7651708a63 (patch) | |
| tree | 994eac32d041689ef05fb3f59b535e94102534dc /test/python | |
| parent | d6164fddbb09f0dc5248b341e97610957f80f8f8 (diff) | |
| download | lilliput-ae-implem-e9682e5ff9946a018e00f513f58b7c7651708a63.tar.xz | |
[implem-python] Construction de _tweak_message par concaténation
Et petits nettoyages par-ci par-là.
Diffstat (limited to 'test/python')
| -rw-r--r-- | test/python/crypto_aead.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/python/crypto_aead.py b/test/python/crypto_aead.py index 6a9b328..d2f1896 100644 --- a/test/python/crypto_aead.py +++ b/test/python/crypto_aead.py @@ -16,7 +16,7 @@ import lilliput from lilliput.constants import ( - NONCE_BYTES as NPUBBYTES, # Expose to genkat_aead. + NONCE_BITS, TAG_BYTES ) @@ -26,6 +26,9 @@ from parameters import ( ) +NPUBBYTES = NONCE_BITS//8 + + def encrypt(m, ad, npub, k): c, tag = lilliput.encrypt(m, ad, k, npub, MODE) return c+tag |
