Added key type to the config file (#17)

Added key type to the config
This commit is contained in:
Ravidu Lashan
2019-10-10 15:33:42 +05:30
committed by GitHub
parent 11489de7a1
commit 070994277d
4 changed files with 8 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ int init()
/**
* Generates a signing key pair using libsodium and assigns them to the provided strings.
*/
void generate_signing_keys(string &pubkey, string &seckey)
void generate_signing_keys(string &pubkey, string &seckey, string &keytype)
{
//Generate key pair using libsodium default algorithm. (Currently using ed25519)
@@ -37,6 +37,7 @@ void generate_signing_keys(string &pubkey, string &seckey)
pubkey = string((char *)pubkeychars, crypto_sign_PUBLICKEYBYTES);
seckey = string((char *)seckeychars, crypto_sign_SECRETKEYBYTES);
keytype = crypto_sign_primitive();
}
/**