Skip to content

dstucrypt/ukurwa4145

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

DSTU 4145 cryptography implementation in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages