Hi,

I'm trying to get ssh 2.4 running on a NEC SX-5 vector computer.
Everything seem to compile fine, but the installation fails at
the hostkey generation, ssh-keygen2 goes into an infinite loop.
I tried changing some of the configure options and CFLAGS setups
but nothing. I finally went with full debug and no optimizations:

./configure --disable-compiler-optimizations --enable-debug-heavy

CFLAGS to no optimizations and and no vectorizations

but I was still getting an infinite loop.

I went quickly through ssh-keygen2 and saw that it relied on stuff
in ssh-2.4.0/lib/sshcrypt. I ran the tests in the test directory
and 2 of the 6 test fail (full result in the attached file):

error: key generation failed.
FAIL: t-gentest
PASS: t-compress
PASS: t-namelist
PASS: t-modetest
PASS: t-rand
setting up group ietf-ike-grp-ec2n-155
FAIL: t-dh

Is there a few more things I can try to make ssh2.4 work on the
NEC?


-- 
Richard Lefebvre, Sys-admin, CERCA, (514)369-5224            "Don't Panic"
Richard.Lefebvre(@AROBAS)cerca(.POINT)umontreal(.POINT)ca       -- THGTTG
http://www.CERCA.UMontreal.CA/~rick/
make check-TESTS
Crypto Library testing.
(Cycle counting not available -- cycles/bytes fields are hence invalid.)

Random number test...
 - bit tests.
Running random number bit tests...
................
Random number generation validation suggests: 
Plain byte distribution: 1000000 tries: 4065 highest, 3735 lowest.
Single bit distributions, and counts in time.
bit 0 av. 0.500432  249917 125731 62475 31275 15483  7777 .  7773
bit 1 av. 0.498971  249104 124227 62792 31374 15803  7856 .  7814
bit 2 av. 0.499574  249723 124835 62473 31338 15366  7926 .  7912
bit 3 av. 0.500041  250189 124958 62501 30957 15635  7895 .  7906
bit 4 av. 0.500227  250164 125202 62517 31049 15635  7832 .  7828
bit 5 av. 0.499774  249715 124681 62986 31239 15482  7836 .  7834
bit 6 av. 0.499743  249951 124992 62282 31160 15520  7885 .  7953
bit 7 av. 0.498945  249431 124003 62795 31336 15716  7697 .  7966

 - sequence tests.
Following set of tests give the number of missing sequences
after n iterations.
Running test for sequences of 2 (table size 8192 bytes).
...............................
Checking missing sequences...
After 131072 runs: 
8880 of 65536 missing (average 0.135498 after 2 full iterations).
Running test for sequences of 3 (table size 262144 bytes).
...............................
Checking missing sequences...
After 4194304 runs: 
283436 of 2097152 missing (average 0.135153 after 2 full iterations).
Running test for sequences of 4 (table size 131072 bytes).
...............................
Checking missing sequences...
After 2097152 runs: 
142234 of 1048576 missing (average 0.135645 after 2 full iterations).
Running test for sequences of 5 (table size 131072 bytes).
...............................
Checking missing sequences...
After 2097152 runs: 
141626 of 1048576 missing (average 0.135065 after 2 full iterations).
Running test for sequences of 6 (table size 32768 bytes).
...............................
Checking missing sequences...


Hash test...
 - random tests (with timing).
md5 -- 2381 KBytes/sec
sha1 -- 1833 KBytes/sec
sha1-96 -- 1360 KBytes/sec
sha1-80 -- 1455 KBytes/sec
ripemd160 -- 1448 KBytes/sec
ripemd160-96 -- 1095 KBytes/sec
ripemd160-80 -- 1352 KBytes/sec
 - running static tests.
 - random tests (with timing).
md5 -- 1803 KBytes/sec
sha1 -- 1702 KBytes/sec
sha1-96 -- 1881 KBytes/sec
sha1-80 -- 1650 KBytes/sec
ripemd160 -- 1048 KBytes/sec
ripemd160-96 -- 1530 KBytes/sec
ripemd160-80 -- 1439 KBytes/sec
 - running static tests.

Mac test...
 - random tests (with timing).
hmac-md5 -- 1686 KBytes/sec
hmac-md5-96 -- 2351 KBytes/sec
hmac-sha1 -- 1880 KBytes/sec
hmac-sha1-96 -- 1782 KBytes/sec
hmac-ripemd160 -- 1248 KBytes/sec
hmac-ripemd160-96 -- 1060 KBytes/sec
sha1-8 -- 1532 KBytes/sec
sha1 -- 1638 KBytes/sec
md5-8 -- 2237 KBytes/sec
md5 -- 2436 KBytes/sec
ripemd160-8 -- 1335 KBytes/sec
ripemd160 -- 1374 KBytes/sec
  - timing could not be performed for none.
 - running static tests.
 - random tests (with timing).
hmac-md5 -- 2152 KBytes/sec
hmac-md5-96 -- 2190 KBytes/sec
hmac-sha1 -- 1752 KBytes/sec
hmac-sha1-96 -- 1780 KBytes/sec
hmac-ripemd160 -- 977 KBytes/sec
hmac-ripemd160-96 -- 1414 KBytes/sec
sha1-8 -- 1732 KBytes/sec
sha1 -- 1092 KBytes/sec
md5-8 -- 2510 KBytes/sec
md5 -- 2575 KBytes/sec
ripemd160-8 -- 1336 KBytes/sec
ripemd160 -- 1102 KBytes/sec
  - timing could not be performed for none.
 - running static tests.

Cipher test...
 - random tests (with timing).
3des-ecb -- 172 KBytes/sec
3des-ecb -- 167 KBytes/sec
3des-cbc -- 182 KBytes/sec
3des-cbc -- 169 KBytes/sec
3des-cfb -- 172 KBytes/sec
3des-cfb -- 165 KBytes/sec
3des-ofb -- 163 KBytes/sec
3des-ofb -- 171 KBytes/sec
cast128-ecb -- 894 KBytes/sec
cast128-ecb -- 727 KBytes/sec
cast128-cbc -- 806 KBytes/sec
cast128-cbc -- 761 KBytes/sec
cast128-cfb -- 735 KBytes/sec
cast128-cfb -- 929 KBytes/sec
cast128-ofb -- 733 KBytes/sec
cast128-ofb -- 868 KBytes/sec
cast128-12-ecb -- 935 KBytes/sec
cast128-12-ecb -- 830 KBytes/sec
cast128-12-cbc -- 1221 KBytes/sec
cast128-12-cbc -- 1195 KBytes/sec
cast128-12-cfb -- 875 KBytes/sec
cast128-12-cfb -- 1119 KBytes/sec
cast128-12-ofb -- 937 KBytes/sec
cast128-12-ofb -- 1199 KBytes/sec
blowfish-ecb -- 707 KBytes/sec
blowfish-ecb -- 573 KBytes/sec
blowfish-cbc -- 637 KBytes/sec
blowfish-cbc -- 698 KBytes/sec
blowfish-cfb -- 620 KBytes/sec
blowfish-cfb -- 723 KBytes/sec
blowfish-ofb -- 659 KBytes/sec
blowfish-ofb -- 676 KBytes/sec
des-ecb -- 486 KBytes/sec
des-ecb -- 395 KBytes/sec
des-cbc -- 413 KBytes/sec
des-cbc -- 451 KBytes/sec
des-cfb -- 448 KBytes/sec
des-cfb -- 489 KBytes/sec
des-ofb -- 463 KBytes/sec
des-ofb -- 428 KBytes/sec
twofish-ecb -- 432 KBytes/sec
twofish-ecb -- 535 KBytes/sec
twofish-cbc -- 513 KBytes/sec
twofish-cbc -- 489 KBytes/sec
twofish-cfb -- 483 KBytes/sec
twofish-cfb -- 502 KBytes/sec
twofish-ofb -- 575 KBytes/sec
twofish-ofb -- 462 KBytes/sec
arcfour -- 1178 KBytes/sec
arcfour -- 1081 KBytes/sec
none -- 184174 KBytes/sec
none -- 164969 KBytes/sec
 - running static tests.
 - random tests (with timing).
3des-ecb -- 180 KBytes/sec
3des-ecb -- 178 KBytes/sec
3des-cbc -- 180 KBytes/sec
3des-cbc -- 185 KBytes/sec
3des-cfb -- 172 KBytes/sec
3des-cfb -- 188 KBytes/sec
3des-ofb -- 149 KBytes/sec
3des-ofb -- 166 KBytes/sec
cast128-ecb -- 887 KBytes/sec
cast128-ecb -- 772 KBytes/sec
cast128-cbc -- 920 KBytes/sec
cast128-cbc -- 727 KBytes/sec
cast128-cfb -- 913 KBytes/sec
cast128-cfb -- 769 KBytes/sec
cast128-ofb -- 828 KBytes/sec
cast128-ofb -- 920 KBytes/sec
cast128-12-ecb -- 1173 KBytes/sec
cast128-12-ecb -- 978 KBytes/sec
cast128-12-cbc -- 1238 KBytes/sec
cast128-12-cbc -- 1033 KBytes/sec
cast128-12-cfb -- 1030 KBytes/sec
cast128-12-cfb -- 1168 KBytes/sec
cast128-12-ofb -- 1264 KBytes/sec
cast128-12-ofb -- 1266 KBytes/sec
blowfish-ecb -- 705 KBytes/sec
blowfish-ecb -- 769 KBytes/sec
blowfish-cbc -- 795 KBytes/sec
blowfish-cbc -- 532 KBytes/sec
blowfish-cfb -- 685 KBytes/sec
blowfish-cfb -- 718 KBytes/sec
blowfish-ofb -- 644 KBytes/sec
blowfish-ofb -- 705 KBytes/sec
des-ecb -- 392 KBytes/sec
des-ecb -- 444 KBytes/sec
des-cbc -- 424 KBytes/sec
des-cbc -- 432 KBytes/sec
des-cfb -- 429 KBytes/sec
des-cfb -- 450 KBytes/sec
des-ofb -- 387 KBytes/sec
des-ofb -- 392 KBytes/sec
twofish-ecb -- 504 KBytes/sec
twofish-ecb -- 559 KBytes/sec
twofish-cbc -- 517 KBytes/sec
twofish-cbc -- 502 KBytes/sec
twofish-cfb -- 439 KBytes/sec
twofish-cfb -- 478 KBytes/sec
twofish-ofb -- 512 KBytes/sec
twofish-ofb -- 503 KBytes/sec
arcfour -- 958 KBytes/sec
arcfour -- 1188 KBytes/sec
none -- 139278 KBytes/sec
none -- 169569 KBytes/sec
 - running static tests.

Pkcs test...
 - selected tests (with timing).

Timing start: generating key type = ec-modp.
 -- key type = ec-modp
 -- signature algorithm = dsa-none-sha1
 -- Diffie-Hellman type = plain
 -- combined name = ec-modp{sign{dsa-none-sha1},dh{plain}}
 -- predefined parameters = ssh-ec-modp-curve-175bit-1
 -- generating...
Timing stop @ 0.013089 sec : key type = ec-modp generated.
error: key generation failed.
core dumping
sh: 31013 abort
FAIL: t-gentest
pass 0
Running compression tests to 17000: 1024 8960 16896
PASS: t-compress

Namelist tests
Pass 999
PASS: t-namelist
PASS: t-modetest
RUNNING: method=linearityTest
 => SUCCESS.
RUNNING: method=blockTest
 => SUCCESS.
RUNNING: method=fftLinearityTest
 => SUCCESS.
RESULT: 3 successful tests, 0 failed tests.
PASS: t-rand
group ietf-ike-grp-modp-768 25 agreements in 3255381 usecs -> 7.68/second
group ietf-ike-grp-modp-1024 25 agreements in 11015832 usecs -> 2.269/second
group ietf-ike-grp-modp-1536 25 agreements in 36120670 usecs -> 0.6921/second
setting up group ietf-ike-grp-ec2n-155
core dumping
sh: 31054 abort
FAIL: t-dh
===================
2 of 6 tests failed
===================
*** Error code 1 (bu21)
make: fatal error.

Reply via email to