Re: Issue using encryption in Debug/Release mode ??
From: Brian Gladman (fake_at_nowhere.org)
Date: 10/01/03
- Next message: Mok-Kong Shen: "Re: Rotor Machine Questions"
- Previous message: Bryan Olson: "Re: IPv4 vs. IPv6 [was: Re: controversial paper ]"
- In reply to: katiki_at_kodak.com: "Issue using encryption in Debug/Release mode ??"
- Next in thread: katiki_at_kodak.com: "THAT'S IT !!"
- Reply: katiki_at_kodak.com: "THAT'S IT !!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 1 Oct 2003 10:02:47 +0100
katiki@kodak.com wrote:
> Actually, my library using AES (named KEM.dll) works fine on our
> machines.
>
> But, on our dev machines, KEM.dll is in Debug mode...that's normal.
> Therefore, we have encrypted files with the DEBUG version of KEM.dll
>
> Therefore, when testing those encrypted files on our release machine
> (using the release version of KEM.dll )
> I didn't retrieve the original plaintext file.
>
> Is this is a known issue ?
> Have you already heard about this kind of issue ?
I have seen situations in which the Microsoft optimiser, which is not
invoked in debug mode, introduces code errors. Hence one thing to try is to
see if compiling in release mode with optimisation turned off gives the same
answers as debug mode. If it does you can then look for where the problem
lies by using pragmas to turn optimisation on and off for parts of your
code. I had to turn optimisation off with one version of Microsoft C
although this was a long time ago and all of the current compiler versions
are ok as far as I am aware.
Another subtle issue is that it is very easy to set different compiler
switches in debug and release mode without realising it and this can result
in incompatible versions. For example, if the compiler is set to compile in
C in debug mode and C++ in release mode the two versions will each work with
themselves but will not necessarily work with each other unless the code has
been designed with this in mind. Although this particular problem should be
picked up at link time, similar problems can cause run time errors.
Brian Gladman
- Next message: Mok-Kong Shen: "Re: Rotor Machine Questions"
- Previous message: Bryan Olson: "Re: IPv4 vs. IPv6 [was: Re: controversial paper ]"
- In reply to: katiki_at_kodak.com: "Issue using encryption in Debug/Release mode ??"
- Next in thread: katiki_at_kodak.com: "THAT'S IT !!"
- Reply: katiki_at_kodak.com: "THAT'S IT !!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|