hi everyone!

i'm having a problems for a couple of hours concerning MacOSX, Crypto+
+ and Dynamic Libraries, hoping you can help me.

under windows, i've successfully created a .dll which includes some
ECC-methods. I can call it from my main application without any
problems. i tried to do so on a mac using apples documentation on
dylibs (http://developer.apple.com/DOCUMENTATION/DeveloperTools/
Conceptual/DynamicLibraries/100-Articles/
DynamicLibraryDesignGuidelines.html) - a simple hello world app is
able to communicate with the dynamic library i created. but if i try
to use my ECC-Code, GDB says, the program receives a  “EXC_BAD_ACCESS"
from the .dylib. i debugged into my code and noticed this error
occuring when calling

PKey.Initialize(  ecrv, CryptoPP::ECP::Point( x, y ), n , h);

whereas before i declared following variables:

CryptoPP::ECP ecrv( p, a, b );
ECIESNullT< CryptoPP::ECP >::PrivateKey    PKey;

of course, the parameters for the elliptic courve were declared at the
very beginning, as well.

putting the code to a single application seems to work... there does
not occur such a problem.

do you have any idea what to do in order to get it work inside the
dylib?

im looking forward to reading from you soon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to