Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedroalbanese/gost2001
Parameters for the GOST R 34.10-2001 CryptoPro Elliptic curve (RFC4357)
https://github.com/pedroalbanese/gost2001
asymmetric-cryptography elliptic-curves gost gost3410-2001
Last synced: about 2 months ago
JSON representation
Parameters for the GOST R 34.10-2001 CryptoPro Elliptic curve (RFC4357)
- Host: GitHub
- URL: https://github.com/pedroalbanese/gost2001
- Owner: pedroalbanese
- License: isc
- Created: 2022-04-03T18:59:00.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-10T16:33:17.000Z (over 2 years ago)
- Last Synced: 2023-08-20T18:52:34.331Z (over 1 year ago)
- Topics: asymmetric-cryptography, elliptic-curves, gost, gost3410-2001
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# GOST2001
[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](https://github.com/pedroalbanese/gost2001/blob/master/LICENSE.md)
[![GitHub downloads](https://img.shields.io/github/downloads/pedroalbanese/gost2001/total.svg?logo=github&logoColor=white)](https://github.com/pedroalbanese/gost2001/releases)
[![GoDoc](https://godoc.org/github.com/pedroalbanese/gost2001?status.png)](http://godoc.org/github.com/pedroalbanese/gost2001)
[![Go Report Card](https://goreportcard.com/badge/github.com/pedroalbanese/gost2001)](https://goreportcard.com/report/github.com/pedroalbanese/gost2001)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/pedroalbanese/gost2001)](https://github.com/pedroalbanese/gost2001/releases)### 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:
```sh
./gost2001 -keygen
```
#### Digital signature (ECDSA):
```sh
./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):
```sh
./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.