diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/lilliput/__init__.py (renamed from python/lilliput.py) | 6 | ||||
| -rw-r--r-- | python/lilliput/constants.py (renamed from python/constants.py) | 0 | ||||
| -rw-r--r-- | python/lilliput/helpers.py (renamed from python/helpers.py) | 4 | ||||
| -rw-r--r-- | python/lilliput/lilliput_ae_1.py (renamed from python/lilliput_ae_1.py) | 6 | ||||
| -rw-r--r-- | python/lilliput/lilliput_ae_2.py (renamed from python/lilliput_ae_2.py) | 6 | ||||
| -rw-r--r-- | python/lilliput/multiplications.py (renamed from python/multiplications.py) | 0 | ||||
| -rw-r--r-- | python/lilliput/tbc.py (renamed from python/tbc.py) | 4 |
7 files changed, 13 insertions, 13 deletions
diff --git a/python/lilliput.py b/python/lilliput/__init__.py index 90a0ed1..43179f8 100644 --- a/python/lilliput.py +++ b/python/lilliput/__init__.py @@ -1,8 +1,8 @@ from enum import Enum -import lilliput_ae_1 -import lilliput_ae_2 -from constants import NONCE_BYTES +from . import lilliput_ae_1 +from . import lilliput_ae_2 +from .constants import NONCE_BYTES class LilliputAeMode(Enum): diff --git a/python/constants.py b/python/lilliput/constants.py index c61dfe0..c61dfe0 100644 --- a/python/constants.py +++ b/python/lilliput/constants.py diff --git a/python/helpers.py b/python/lilliput/helpers.py index 321b096..8677f06 100644 --- a/python/helpers.py +++ b/python/lilliput/helpers.py @@ -1,5 +1,5 @@ -from constants import BLOCK_BITS, BLOCK_BYTES -import tbc +from .constants import BLOCK_BITS, BLOCK_BYTES +from . import tbc def ArrayToBlockbytesMatrix(array): diff --git a/python/lilliput_ae_1.py b/python/lilliput/lilliput_ae_1.py index 8064871..0da2a95 100644 --- a/python/lilliput_ae_1.py +++ b/python/lilliput/lilliput_ae_1.py @@ -4,8 +4,8 @@ from enum import Enum -from constants import BLOCK_BYTES, NONCE_BYTES -from helpers import ( +from .constants import BLOCK_BYTES, NONCE_BYTES +from .helpers import ( ArrayToBlockbytesMatrix, BlockbytesMatrixToBytes, BuildAuth, @@ -13,7 +13,7 @@ from helpers import ( TagValidationError, XorState ) -import tbc +from . import tbc TWEAK_BITS = 192 diff --git a/python/lilliput_ae_2.py b/python/lilliput/lilliput_ae_2.py index 3c0aa2a..61aa86e 100644 --- a/python/lilliput_ae_2.py +++ b/python/lilliput/lilliput_ae_2.py @@ -2,8 +2,8 @@ SCT 2 for lilliput ae 2 """ -from constants import BLOCK_BYTES -from helpers import ( +from .constants import BLOCK_BYTES +from .helpers import ( ArrayToBlockbytesMatrix, BlockbytesMatrixToBytes, BuildAuth, @@ -11,7 +11,7 @@ from helpers import ( TagValidationError, XorState ) -import tbc +from . import tbc TWEAK_BITS = 128 diff --git a/python/multiplications.py b/python/lilliput/multiplications.py index c5f1e44..c5f1e44 100644 --- a/python/multiplications.py +++ b/python/lilliput/multiplications.py diff --git a/python/tbc.py b/python/lilliput/tbc.py index ca51649..5291994 100644 --- a/python/tbc.py +++ b/python/lilliput/tbc.py @@ -1,8 +1,8 @@ """ Lilliput TBC """ -from constants import BLOCK_BYTES, Sbox -from multiplications import ALPHAS +from .constants import BLOCK_BYTES, Sbox +from .multiplications import ALPHAS permutation = [14, 11, 12, 10, 8, 9, 13, 15, 3, 1, 4, 5, 6, 0, 2, 7] |
