Saturday, August 27, 2005

Mobile Cryptography Benchmark

Mobile Phone: BenQ s680c (CLDC 1.0, MIDP 1.0)

Library: Bouncy Castle Lightweight API for J2ME (Version 1.29)

Plaintext size: 631 bytes

AES CBC mode with PKCS7 padding
plaintext blocks: 631 * 8 / 128 = 40 blocks

Unit: millisecond

Key Size Encrypt Decrypt Key Generation
AES 128 421 314 97
286 319 97
296 310 97
AES 192 449 356 143
319 346 144
328 347 148
AES 256 495 384 138
346 407 139
352 388 134
352 393 134


Comment: The first encryption is slightly slower, because there are

some classes which are first be instantiated by cipher at encryption

step, being loaded at that time.








SHA-256 & SHA-512


Unit: millisecond


SHA-256 SHA-512
847 804
860 805
874 809
856 804
851 800











Digital Signature


Unit: millisecond


Algorithm

and Key Size
Sign Verify Key

Generation
RSA 1024 142755 14389 Too

slow to run. All take more than 10 minutes on emulator running on a AMD

Athlon XP 2000+ machine. Maybe  Bouncy Castle’s

BigInteger has some problems. They are much faster with

J2SE’s BigInteger.
142117 13686
142362 14111
DSA 1024 90410 188168
92389 184935
RSA 2048 1080095 49136
1069361 49968
ECDSA prime192v1 824896 1731073
893203 1789403











Resources:




Thursday, August 25, 2005

一篇介紹 Commons4E 的日文文章

不小心發現一篇介紹 Commons4E 的日文文章 - CoolなEclipseプラグイン(6) - 3

被列為 cool plugin 感覺還不錯 :P


  • 留言者: koji
  • Email:
  • 網址:
  • 日期: 2005-08-30 10:52:51

好棒^^

Wednesday, August 17, 2005

Commons4E 1.0.7

Commons4E

這版只是讓產生 toString 時的 field 可以和 compareTo 一樣調整順序。

下次的版本會是給 Eclipse 3.1 以上用的 1.1.0 版,可以產生使用 generics 的 compareTo。