Skip to content

Parameters for the GOST R 34.10-2001 CryptoPro Elliptic curve (RFC4357)

License

Notifications You must be signed in to change notification settings

pedroalbanese/gost2001

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GOST2001

ISC License GitHub downloads GoDoc Go Report Card GitHub release (latest by date)

GOST R 34.10-2001 CryptoPro ParamSets (January 2006)

Package implements the elliptic curves originally described in RFC 4357

Usage

Usage of gost2001:
  -derive
        Derive shared secret.
  -key string
        Private/Public key.
  -keygen
        Generate keypair.
  -pub string
        Remote's side Public key.
  -sign
        Sign with Private key.
  -signature string
        Signature.
  -verify
        Verify with Public key.

Examples

Asymmetric keypair generation:

./gost2001 -keygen 

Digital signature (ECDSA):

./gost2001 -sign -key $prvkey < file.ext > sign.txt
sign=$(cat sign.txt)
./gost2001 -verify -key $pubkey -signature $sign < file.ext

Shared key agreement (ECDH a.k.a. VKO):

./gost2001 -derive -key $prvkey -pub $pubkey

License

This project is licensed under the ISC License.

Industrial-Grade Reliability. Copyright (c) 2020-2022 ALBANESE Research Lab.

About

Parameters for the GOST R 34.10-2001 CryptoPro Elliptic curve (RFC4357)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages