Class TransportCipher
- java.lang.Object
-
- com.biglybt.core.networkmanager.impl.TransportCipher
-
public class TransportCipher extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private javax.crypto.Cipher
cipher
private static boolean
internal_rc4
private RC4Engine
rc4_engine
-
Constructor Summary
Constructors Constructor Description TransportCipher(java.lang.String algorithm, int mode, javax.crypto.spec.SecretKeySpec key_spec)
TransportCipher(java.lang.String algorithm, int mode, javax.crypto.spec.SecretKeySpec key_spec, java.security.spec.AlgorithmParameterSpec params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
protected byte[]
update(byte[] data)
protected byte[]
update(byte[] data, int offset, int length)
protected void
update(java.nio.ByteBuffer source_buffer, java.nio.ByteBuffer target_buffer)
-
-
-
Field Detail
-
internal_rc4
private static boolean internal_rc4
-
cipher
private javax.crypto.Cipher cipher
-
rc4_engine
private RC4Engine rc4_engine
-
-
Constructor Detail
-
TransportCipher
public TransportCipher(java.lang.String algorithm, int mode, javax.crypto.spec.SecretKeySpec key_spec, java.security.spec.AlgorithmParameterSpec params) throws java.lang.Exception
- Throws:
java.lang.Exception
-
TransportCipher
TransportCipher(java.lang.String algorithm, int mode, javax.crypto.spec.SecretKeySpec key_spec) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
update
protected byte[] update(byte[] data)
-
update
protected byte[] update(byte[] data, int offset, int length)
-
update
protected void update(java.nio.ByteBuffer source_buffer, java.nio.ByteBuffer target_buffer) throws java.io.IOException
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
-
-