Changeset 6203

Show
Ignore:
Timestamp:
02/05/08 07:13:09 (7 years ago)
Author:
nori090
Message:

lang/java/jimmy: 0x00を探す必要がなかった件

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/java/jimmy/trunk/jimmy/src/main/java/jimmy/RC4.java

    r6159 r6203  
    3030    public static byte[] encrypt( byte[] key, byte[] bs ) 
    3131        throws WinnyProtocolException { 
    32         byte[] newk = ConvertUtil.getCStringByte( key ); 
    33         return new ARC4Cipher(newk).encrypt( bs ); 
     32        return new ARC4Cipher(key).encrypt( bs ); 
    3433    } 
    3534 
    3635    public static byte[] decrypt( byte[] key, byte[] bs ) 
    3736        throws WinnyProtocolException { 
    38         byte[] newk = ConvertUtil.getCStringByte( key ); 
    39         return new ARC4Cipher(newk).decrypt( bs ); 
     37        return new ARC4Cipher(key).decrypt( bs ); 
    4038    } 
    4139}