Hello! :)
__Sorry__ for tacking things to existing threads. Here is the new one, 
Jeffrey.
1) I have found a way of copying text from Windows Command Line, so here is 
the first unsolved problem.
On MinGW-32, the *cryptest.exe v *with CRYPTOPP_NO_UNALIGNED_ACCESS defined 
crashes with SIGSEGV:
-----------------------------------------------------------------------------------------------
Using seed: 1438287574


Testing Settings...

passed:  Your machine is little endian.
passed:  CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS is not defined. Will restrict 
to a
ligned data access.
passed:  sizeof(byte) == 1
passed:  sizeof(word16) == 2
passed:  sizeof(word32) == 4
passed:  sizeof(word64) == 8
passed:  sizeof(hword) == 2, sizeof(word) == 4, sizeof(dword) == 8

Testing rotate...

passed    left rotate
passed    right rotate

Testing conversions...

passed    signed char
passed    signed char overflow
passed    unsigned char
passed    unsigned char overflow
passed    signed short
passed    signed short overflow
passed    unsigned short
passed    unsigned short overflow
passed    signed int
passed    signed int overflow
passed    unsigned int
passed    unsigned int overflow
passed    signed long
passed    signed long overflow
passed    unsigned long
passed    unsigned long overflow
passed    signed long long
passed    unsigned long long
passed    ssize_t
passed    size_t

No operating system provided blocking random number generator, skipping 
test.

Testing operating system provided nonblocking random number generator...

passed:  100000 generated bytes compressed to 100020 bytes by DEFLATE

CRC-32 validation suite running...

passed   00000000   ""
passed   43beb7e8   "a"
passed   c2412435   "abc"
passed   7f9d1520   "message digest"
passed   bd50274c   "abcdefghijklmnopqrstuvwxyz"
passed   d2e6c21f   
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
789"
passed   724aa97c   
"12345678901234567890123456789012345678901234567890123456789
012345678901234567890"
passed   2639f4cb   "123456789"

Adler-32 validation suite running...

passed   00000001   ""
passed   00620062   "a"
passed   024d0127   "abc"
passed   29750586   "message digest"
passed   90860b20   "abcdefghijklmnopqrstuvwxyz"
passed   8adb150c   
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456
789"
passed   15d870f9   
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaa" repeated 15625 times

MD2 validation suite running...

passed   8350e5a3e24c153df2275c9f80692773   ""
passed   32ec01ec4a6dac72c0ab96fb34c0b5d1   "a"
passed   da853b0d3f88d99b30283a69e6ded6bb   "abc"
passed   ab4f496bfb2a530b219ff33031fe06b0   "message digest"
passed   4e8ddff3650292ab5a4108c3aa47940b   "abcdefghijklmnopqrstuvwxyz"
passed   da33def2a42df13975352846c30338cd   
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi
jklmnopqrstuvwxyz0123456789"
passed   d5976f79d83d3a0dc9806c3c66f3efd8   
"12345678901234567890123456789012345
678901234567890123456789012345678901234567890"

MD5 validation suite running...

passed   d41d8cd98f00b204e9800998ecf8427e   ""
passed   0cc175b9c0f1b6a831c399e269772661   "a"
passed   900150983cd24fb0d6963f7d28e17f72   "abc"
passed   f96b697d7cb7938d525a2f31aaf161d0   "message digest"
passed   c3fcd3d76192e4007dfb496cca67e13b   "abcdefghijklmnopqrstuvwxyz"
passed   d174ab98d277d9f5a5611c2c9f419d9f   
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi
jklmnopqrstuvwxyz0123456789"
passed   57edf4a22be3c955ac49da2e2107b67a   
"12345678901234567890123456789012345
678901234567890123456789012345678901234567890"

SHA validation suite running...


Testing MessageDigest algorithm SHA-1.

Program received signal SIGSEGV, Segmentation fault.
0x004f8ebc in __chkstk_ms ()
(gdb) backtrace
#0  0x004f8ebc in __chkstk_ms ()
#1  0x00497c57 in CryptoPP::Rijndael::Enc::AdvancedProcessBlocks (
    this=this@entry=0x7b10d0 <s_globalRNG+48>,
    inBlocks=inBlocks@entry=0x2e92990 "1438287574",
    xorBlocks=xorBlocks@entry=0x0,
    outBlocks=outBlocks@entry=0x2e982e0 "\rр-є\rр-є\rр-є\rр-є<<<<<<<<",
    length=length@entry=16, flags=flags@entry=0) at rijndael.cpp:1215
#2  0x004988ab in CryptoPP::Rijndael::Enc::ProcessAndXorBlock (
    this=0x7b10d0 <s_globalRNG+48>, inBlock=0x2e92990 "1438287574",
    xorBlock=0x0, outBlock=0x2e982e0 "\rр-є\rр-є\rр-є\rр-є<<<<<<<<")
    at rijndael.cpp:365
#3  0x004a7f75 in ProcessBlock (
    outBlock=0x2e982e0 "\rр-є\rр-є\rр-є\rр-є<<<<<<<<",
    inBlock=<optimized out>, this=<optimized out>) at cryptlib.h:470
#4  CryptoPP::OFB_ModePolicy::WriteKeystream (this=0x7b10a0 <s_globalRNG>,
    keystreamBuffer=0x2e982e0 "\rр-є\rр-є\rр-є\rр-є<<<<<<<<",
    iterationCount=1) at modes.cpp:84
#5  0x0055d4b5 in 
CryptoPP::AdditiveCipherTemplate<CryptoPP::AbstractPolicyHolde
r<CryptoPP::AdditiveCipherAbstractPolicy, CryptoPP::OFB_ModePolicy> 
>::GenerateB
lock (this=0x7b10a0 <s_globalRNG>, outString=0x28def0 "", length=4)
    at strciphr.cpp:61
#6  0x0043ce87 in CryptoPP::RandomNumberGenerator::GenerateWord32 (
    this=0x7b10bc <s_globalRNG+28>, min=0, max=63) at cryptlib.cpp:263
#7  0x0042c440 in RandomizedTransfer (source=..., target=..., channel=...,
    finish=true) at datatest.cpp:69
#8  0x0042d704 in _fu94___ZNSs4_Rep20_S_empty_rep_storageE ()
    at datatest.cpp:123
#9  0x00430cac in _fu2426___ZTIi () at datatest.cpp:573
#10 0x00432bfb in _fu871___ZSt4cout () at datatest.cpp:716
#11 0x00432fa5 in RunTestDataFile (
    filename=filename@entry=0x64267f <ValidateBBS()::output1+1457> 
"TestVectors/
sha.txt", overrideParameters=..., thorough=thorough@entry=true)
    at datatest.cpp:755
#12 0x0042925c in _fu800___ZSt4cout () at validat3.cpp:173
#13 0x00419db5 in ValidateAll (thorough=thorough@entry=false)
    at validat1.cpp:61
#14 0x0040b61d in _fu523___ZSt4cout () at test.cpp:847
#15 0x00605f89 in _fu2814___ZSt3cin () at test.cpp:367
-----------------------------------------------------------------------------------------------
2) Second problem is with random generator. This code causes a segmentation 
fault:
unsigned int result;
GenerateBlock((byte*)&result, sizeof(unsigned int));
Here is the call stack (image, as I cannot copy text from Code::Blocks call 
stack window.

<https://lh3.googleusercontent.com/-c7nVZKuOvKM/Vbsfhu25CGI/AAAAAAAAA0M/5FpsWjZzEqQ/s1600/2015-07-25%2B17-45-31%2B%25D0%25A1%25D0%25BA%25D1%2580%25D0%25B8%25D0%25BD%25D1%2588%25D0%25BE%25D1%2582%2B%25D1%258D%25D0%25BA%25D1%2580%25D0%25B0%25D0%25BD%25D0%25B0.png>

Hope someone reads this topic...

-- 
-- 
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/d/optout.

Reply via email to