pytrivium 1.0.7

Last updated:

0 purchases

pytrivium 1.0.7 Image
pytrivium 1.0.7 Images
Add to Cart

Description:

pytrivium 1.0.7

Trivium - Python Implementation
Here is a Python implementation of Trivium. It uses cffi to bind Python with the C implementation.
This package provides short examples to learn about Python bindings and distributing packages.
Installation
I advise you to install it in a virtualenv.
$ pip install pytrivium

Demo
from pytrivimum import Trivium

# Set 6, vector# 3:
key = [0xfa, 0xa7, 0x54, 0x01, 0xae, 0x5b, 0x08, 0xb5, 0x62, 0x0f]
iv = [0xc7, 0x60, 0xf9, 0x92, 0x2b, 0xc4, 0x5d, 0xf6, 0x8f, 0x28]

engine = Trivium()
engine.initialize(key, iv)

engine.update(8)

output = engine.finalize()

print([hex(i) for i in output])

# Require Python >= 3.6
python demo.py

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.