Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tlinden/curve-keygen
curve-keygen - a utility to generate CURVE25519 keypairs.
https://github.com/tlinden/curve-keygen
Last synced: 17 days ago
JSON representation
curve-keygen - a utility to generate CURVE25519 keypairs.
- Host: GitHub
- URL: https://github.com/tlinden/curve-keygen
- Owner: TLINDEN
- License: gpl-3.0
- Created: 2013-10-07T18:40:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-08T18:49:08.000Z (almost 10 years ago)
- Last Synced: 2023-03-22T03:11:18.420Z (almost 2 years ago)
- Language: Shell
- Size: 219 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
NAME
curve-keygen - a utility to generate CURVE25519 keypairs.SYNOPSIS
Usage: curve-genkey [options]Options:
-f Filename for the key, default: 'id_curve25519'.
-n Your name
-m Your email address
-o Your organization
-y Read private key file and print public key, requires -s
-s File containing a secret key
-c Don't encrypt the secret key (CZMQ default)
-h print this help message
-v print program versionDESCRIPTION
curve-genkey generates a CURVE25519 keypair. It stores the public key in
CZMQ's zcert format and the private key in binary form. If the option -c
have been supplied or if no passphrase provided, the private key will be
stored in zcert format as well.LIBRARY
A library libcsk is available which can be used from client programs to
access encrypted private keys. Example usage:#include
#include
int main() {
size_t rawsize;
char secretfile[] = "id_curve25519_secret";
char passphrase[] = "my password";
unsigned char *raw = csk_raw_load(secretfile, &rawsize);
zcert_t *cert = csk_zcert_decrypt(raw, passphrase, rawsize);
if(cert != NULL) {
// do something with cert
}
return 0;
}Compile the client program with -lcsk ld flag.
FILES
curve-keygen creates by default files in the current directory. If not
further specified these are:id_curve25519_secret
The encrypted private key in binary form. If the private key is
saved without encryption this file will be in CZMQ zcert format.id_curve25519
The public key in CZMQ zcert format.BUGS
Currently curve-keygen stores the encrypted private key as raw binary
stream to disk. This is not portable. A future version will save the key
in IETF format or - once CZMQ provides support for it - in
zcert-secret-format (however that might be named then).COPYRIGHT
Copyright (c) 2013 by T.LindenAUTHORS
*T.LindenLICENSE
Licensed under the GNU GENERAL PUBLIC LICENSE version 3.