makoto@tateyama 23:26:39/971201(/home2/libdes-401)> ./destest Doing ecb Doing ede ecb Doing cbc Doing desx cbc Doing ede cbc Doing pcbc Doing cfb8 cfb16 cfb32 cfb48 cfb64 cfb64() ede_cfb64() done Doing ofb Doing ofb64 Doing ede_ofb64 Doing cbc_cksum Doing quad_cksum input word alignment test 0 1 2 3 output word alignment test 0 1 2 3 fast crypt test makoto@tateyama 23:26:44/971201(/home2/libdes-401)> ./rpw read passwd Enter password: password = 2a df 3b 49 ab a8 d5 bc read 2passwds and verify Enter verified password: Verifying password - Enter verified password: password1 = 2a df 3b 49 ab a8 d5 bc password2 = 2a df 3b 49 ab a8 d5 bc makoto@tateyama 23:27:02/971201(/home2/libdes-401)> ./speed Doing set_key for 10 seconds 23413 set_key's in 10.00 seconds Doing des_encrypt's for 10 seconds 33906 des_encrypt's in 10.00 second Doing des_cbc_encrypt on 1024 byte blocks for 10 seconds 251 des_cbc_encrypt's of 1024 byte blocks in 9.96 second Doing des_ede_cbc_encrypt on 1024 byte blocks for 10 seconds 90 des_ede_cbc_encrypt's of 1024 byte blocks in 10.01 second Doing crypt for 10 seconds 1071 crypts in 10.00 second set_key per sec = 2341.30 (427.1uS) DES raw ecb bytes per sec = 27124.80 (294.9uS) DES cbc bytes per sec = 25805.62 (310.0uS) DES ede cbc bytes per sec = 9206.79 (868.9uS) crypt per sec = 107.10 (9337.1uS) makoto@tateyama 23:28:03/971201(/home2/libdes-401)> ./des_opts Doing des_encrypt_u4_cisc_idx 's for 10 seconds 32881 des_encrypt_u4_cisc_idx 's in 9.99 second Doing des_encrypt_u16_cisc_idx 's for 10 seconds 34403 des_encrypt_u16_cisc_idx 's in 9.93 second Doing des_encrypt_u4_risc1_idx 's for 10 seconds 33806 des_encrypt_u4_risc1_idx 's in 10.00 second Doing des_encrypt_u16_risc1_idx's for 10 seconds 35204 des_encrypt_u16_risc1_idx's in 9.93 second Doing des_encrypt_u4_risc2_idx 's for 10 seconds 32682 des_encrypt_u4_risc2_idx 's in 9.94 second Doing des_encrypt_u16_risc2_idx's for 10 seconds 35300 des_encrypt_u16_risc2_idx's in 9.98 second Doing des_encrypt_u4_cisc_ptr 's for 10 seconds 27255 des_encrypt_u4_cisc_ptr 's in 9.98 second Doing des_encrypt_u16_cisc_ptr 's for 10 seconds 25473 des_encrypt_u16_cisc_ptr 's in 9.17 second Doing des_encrypt_u4_risc1_ptr 's for 10 seconds 27756 des_encrypt_u4_risc1_ptr 's in 9.98 second Doing des_encrypt_u16_risc1_ptr's for 10 seconds 28568 des_encrypt_u16_risc1_ptr's in 9.97 second Doing des_encrypt_u4_risc2_ptr 's for 10 seconds 27262 des_encrypt_u4_risc2_ptr 's in 9.95 second Doing des_encrypt_u16_risc2_ptr's for 10 seconds 27976 des_encrypt_u16_risc2_ptr's in 9.96 second des_encrypt_u4_cisc_idx bytes per sec = 26331.13 (303.8uS) des_encrypt_u16_cisc_idx bytes per sec = 27716.41 (288.6uS) des_encrypt_u4_risc1_idx bytes per sec = 27044.80 (295.8uS) des_encrypt_u16_risc1_idx bytes per sec = 28361.73 (282.1uS) des_encrypt_u4_risc2_idx bytes per sec = 26303.42 (304.1uS) des_encrypt_u16_risc2_idx bytes per sec = 28296.59 (282.7uS) des_encrypt_u4_cisc_ptr bytes per sec = 21847.70 (366.2uS) des_encrypt_u16_cisc_ptr bytes per sec = 22222.90 (360.0uS) des_encrypt_u4_risc1_ptr bytes per sec = 22249.30 (359.6uS) des_encrypt_u16_risc1_ptr bytes per sec = 22923.17 (349.0uS) des_encrypt_u4_risc2_ptr bytes per sec = 21919.20 (365.0uS) des_encrypt_u16_risc2_ptr bytes per sec = 22470.68 (356.0uS) options des ecb/s 16 r1 i 3545.22 100.0% 16 r2 i 3537.07 99.8% 16 c i 3464.55 97.7% 4 r1 i 3380.60 95.4% 4 c i 3291.39 92.8% 4 r2 i 3287.93 92.7% 16 r1 p 2865.40 80.8% 16 r2 p 2808.84 79.2% 4 r1 p 2781.16 78.4% 16 c p 2777.86 78.4% 4 r2 p 2739.90 77.3% 4 c p 2730.96 77.0% -DDES_UNROLL -DDES_RISC1 makoto@tateyama 23:30:46/971201(/home2/libdes-401)> ここで表示された二つの選択のうち、RISC1 という方は指 定されていなかったので、それを付けて des_enc.o を消して、もう一度 make ほんの少しだけ早くなる。 makoto@tateyama 23:51:19/971201(/home2/libdes-401)> ./speed Doing set_key for 10 seconds 23437 set_key's in 10.00 seconds Doing des_encrypt's for 10 seconds 34901 des_encrypt's in 10.00 second Doing des_cbc_encrypt on 1024 byte blocks for 10 seconds 258 des_cbc_encrypt's of 1024 byte blocks in 9.95 second Doing des_ede_cbc_encrypt on 1024 byte blocks for 10 seconds 92 des_ede_cbc_encrypt's of 1024 byte blocks in 10.05 second Doing crypt for 10 seconds 1072 crypts in 10.00 second set_key per sec = 2343.70 (426.7uS) DES raw ecb bytes per sec = 27920.80 (286.5uS) DES cbc bytes per sec = 26551.96 (301.3uS) DES ede cbc bytes per sec = 9373.93 (853.4uS) crypt per sec = 107.20 (9328.4uS) makoto@tateyama 23:54:35/971201(/home2/libdes-401)>