Package implements the elliptic curves originally described in RFC 7836
Usage of gost2012:
-dec
Decrypt with Private key
-derive
Derive shared secret key
-enc
Encrypt with Public key
-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
./gost2012 -keygen
./gost2012 -sign -key $prvkey < file.ext > sign.txt
sign=$(cat sign.txt)
./gost2012 -verify -key $pubkey -signature $sign < file.ext
./gost2012 -enc -key $pubkey < file.ext > file.enc
./gost2012 -dec -key $prvkey < file.enc
./gost2012 -derive -key $prvkey -pub $pubkey
This project is licensed under the ISC License.