Re: FIPS Module 1.2 build with Visual Studio 2010 fails self-tests

2010-10-18 Thread Jeffrey Altman
On 10/17/2010 4:36 PM, Dr. Stephen Henson wrote: On Sun, Oct 17, 2010, aerow...@gmail.com wrote: Ugh. This is worse than I thought. It's *intermittently* failing like that. After a few more minutes, I tried it again, and got the expected output. Is there some way to specify a base

RE: FIPS Module 1.2 build with Visual Studio 2010 fails self-tests

2010-10-18 Thread Grant Averett
Thanks Jeffrey. I was aware of the limitation and how image randomization works in Vista and higher so disabling ASLR was the first thing I tried. Unfortunately, disabling ASLR didn't fix the problem. The DLL gets relocated with or without ASLR enabled. The VC9-generated DLL does not have

Re: FIPS Module 1.2 build with Visual Studio 2010 fails self-tests

2010-10-18 Thread Dr. Stephen Henson
On Mon, Oct 18, 2010, Grant Averett wrote: Even specifying a different base address doesn't fix the problem. I have a different default address that the DLL consistently gets relocated to but changing the preferred base address of libeay32 to that address still doesn't work. The DLL

Re: FIPS Module 1.2 build with Visual Studio 2010 fails self-tests

2010-10-18 Thread Andy Polyakov
Question #1. Are we talking about 32-bit version or is it the problem with *both* x86 and x64 code? Even specifying a different base address doesn't fix the problem. I have a different default address that the DLL consistently gets relocated to but changing the preferred base address of

Re: FIPS Module 1.2 build with Visual Studio 2010 fails self-tests

2010-10-18 Thread Andy Polyakov
On Windows it is not possible to require that a DLL be loaded at a specific address in memory within a process. The base address is simply a recommendation and if correct will result in the library loading process being faster than if it is not. Correct and prerequisite for recommended base

Re: [PATCH] Openssl asm BN/AES/SHA1 acceleration for SH4 and MIPS32

2010-10-18 Thread Andy Polyakov
Vincent, As I don't have access to little-endian MIPS, In other words my understanding is that *your* MIPS platform is little-endian, isn't it? I noticed something that has to be a bug in sha512-mips.pl, which would fail sha256 test on little-endian MIPS32 platform. Specifically $MSB assignment

RE: FIPS Module 1.2 build with Visual Studio 2010 fails self-tests

2010-10-18 Thread Grant Averett
Is libeay32.dll linked with /FIXED? Verify with 'dumpbin /headers libeay32.dll', look for DLL characteristicsNo! The DLL still had the randomization code turned on after I dumped it. It turns out I had the /FIXED flag in the wrong place for the actual DLL. Once I looked closer at the

Re: FIPS Module 1.2 build with Visual Studio 2010 fails self-tests

2010-10-18 Thread Andy Polyakov
I tested this on the x86 version of the DLL and I imagine it will fix the x64 DLL as well (they both reported the same error). It looks like this setting will need to be added for VS2010. As mentioned [in another reply], I was under impression that x64 code is always position-independent,

sample code for client program to send DTLS alerts to the router

2010-10-18 Thread Ranjith Kumar A.
Hello, I need a sample program in C to test DTLS code on my router (server). Or else let me know how can i send DTLS alerts from a windows client to the server. This is very urgent need, Your help is very much appreciated and thanks in advance. Thanks, Ranjith