|
Hello. I'm using ECDSA for an authentication
problem, but I'm unfamiliar with Elliptic Curves. The following code will
compile (Crypto++ 5.1) and is supposed to generate a random
keypair for ECDSA. My question is, is this code correct (that is,
secure)? A monosyllabic answer will suffice in the positive case; for the
negative case an explanation would be appreciated. Thanks.
CryptoPP::AutoSeededRandomPool random_pool;
// Create a random private key CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA>::PrivateKey privkey; privkey.Initialize(random_pool, CryptoPP::ASN1::secp224k1()); // Get the public key version CryptoPP::ECDSA<CryptoPP::EC2N, CryptoPP::SHA>::PublicKey pubkey; privkey.MakePublicKey(pubkey); I feel like I'm debugging a zen
koan.
|
- Re: ECDSA Key Generation question Guy Smith
- Re: ECDSA Key Generation question Wei Dai
- Re: ECDSA Key Generation question Guy Smith
