Hi all,

it seems that the interface for elliptic key cryptography hast completely
changed from version 4.2 to 5.2.1 and I couldn't find any documentation,
which is up to date.

I just want to test encoding, but I alway get an unhandled exception when
asking for the ciphertext length.

This is what I did (I have no idea, whether the principle is correct or not,
so it would be great if you could tell me that):

I derived my own crypto class from the interface ECIES<ECP>. It has the
following member variables:

PublicKey pub_key;
PrivateKey priv_key;
DL_GroupParameters_EC<ECP> ec_context;
AutoSeededRandomPool rng;
Encryptor encryptor;
Decryptor decryptor;

On initialization, I create the keys:

{
ec_context.Initialize(rng, ASN1::secp224k1());

priv_key.Initialize(rng, ec_context);
priv_key.MakePublicKey(pub_key);
}

Now, I want to encrypt a buffer and during the call of 

encryptor.CiphertextLength(sizeof(msg))

I get the unhandled exception. Do you need a stack trace or is the error
obvious?

Did I miss to initialize any context? Do I need to initialize the
encryptor/decryptor? Is it the right way to derive the Interface for my own
purposes?

Does anybody know, where I can find some documentation about elliptic curve
cryptography in crypto++ 5.2.1?

I hope anybody can help me.

Greetings,

Christian Beckel

-- 
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

Reply via email to