Merge pull request #19 from SOUx4cx4fx56x69/master

...Last for today:)
This commit is contained in:
orignal 2017-08-08 13:45:51 -04:00 committed by GitHub
commit 83eb8cc858

View file

@ -60,14 +60,14 @@ void thread_find(const char * prefix){
#endif
int main (int argc, char * argv[])
{
if (argc < 2)
if ( argc < 3 )
{
std::cout << "Usage: " << argv[0] << " filename generatestring <signature type>" << std::endl;
return 0;
}
i2p::crypto::InitCrypto (false);
type = i2p::data::SIGNING_KEY_TYPE_EDDSA_SHA512_ED25519;
if (argc > 3)
if ( argc > 3 )
type = NameToSigType(std::string(argv[3]));
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
keys = i2p::data::PrivateKeys::CreateRandomKeys (type);