first of all: it�s my 2. day with crypto++ ... ok, my question. i want do generate a keypair with ECIES. the keylength should be 228bit. at least, i need the keys as char or unsigned char.
that for i use the following code:
AutoSeededRandomPool *arng = new AutoSeededRandomPool;
RandomNumberGenerator &rng = *dynamic_cast<RandomNumberGenerator *>(arng);
// Create a random private key
ECIES<ECP>::PrivateKey privkey;
privkey.Initialize(rng, ASN1::secp224k1()); //or secp224r1?
// Get the public key
ECIES<ECP>::PublicKey pubkey;
privkey.MakePublicKey(pubkey);
is that the right code? what happend next to
convert it into char? what about the keylength?
sizeof(privkey) = 228
sizeof(pubkey) = 292???
thanks, vm
