Interesting approach. I also ran into the RTTI issue, for the same reason 
(attempting to implement a modest amount of protection). In Crypto++ 5.6.2, 
I found a single occurrence of a dynamic_cast, in 
the StreamTransformationFilter constructor. It turns out that my code does 
not use that, so I just put a guard statement in there and built the static 
library with /GR-. While the RTTI data is now gone, there are still plenty 
of occurrences of "CryptoPP" and of obviously crypto++-related error 
messages in strings inside the executable. I'm now considering whether it's 
worth doing something about those, such as replacing them with meaningless 
important-sounding text. Any recommendations? Your client did not seem to 
mind those apparently...

Albert


On Tuesday, March 12, 2013 1:35:48 PM UTC-4, Hajo Nils Krabbenhöft wrote:
>
> It seems Google Groups deletes my attachment, so please look at the GIST 
> URL.
>
>
> On Tuesday, March 12, 2013 6:34:38 PM UTC+1, Hajo Nils Krabbenhöft wrote:
>>
>> Hi guys,
>>
>> and first off, thanks for the great Crypto++ library. 
>>
>> We had a client requirement to do encryption but were not allowed to use 
>> RTTI because our client fears that the RTTI information will make reverse 
>> engineering of the product easier. To make this work, I used a template 
>> function to replace typeid() and then created explicit instantiations for 
>> all needed types. Compiled with my fake RTTI, Crypto++ passes all tests. In 
>> case that matters, I'm using the Intel Compiler and Crypto++ 5.6.0. 
>>
>> Here's the steps I took and the resulting source code:
>>
>> https://gist.github.com/fxtentacle/5145014
>> (and attached as markdown)
>>
>> Cheers, 
>> Hajo Nils Krabbenhöft
>>
>>

-- 
-- 
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.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to