DSTU 4145 cryptography implementation in Python
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
ukurwa4145
.gitignore
.travis.yml
README.md
kdpv.jpg
setup.py

README.md

Ecliptic Kurwa

Partial, broken and unusable implementation of DSTU 4145-200.

We

Build Status

Usage

Generate key and select curve to sign or verify data:

from ukurwa4145 import curve, Priv

with curve('DSTU_257') as cd:
    priv, pub = Priv.generate()

    s, r = priv.sign(value_hash=0xFEFEFEFEFEFDEADF0)
    pub.verify(value_hash=0xFEFEFEFEFEFDEADF0, s=s, r=r)

    pub.verify(value_hash=0xFEFEFEFEFEFDEADF0, s=123, r=123)
    # Exception:
    #    ukurwa4145.crypto.SignatureError: Signature does not match

Links