|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.kodemuse.security.ssl.LogCapability | +--com.kodemuse.security.ssl.CipherSpecImpl | +--com.kodemuse.security.ssl.StreamCipherSpecImpl
Concrete Cipher Suite implementation. There may be stream(RC4) or block ciphers(DES). This class provides Stream Cipher implementation. The Stream Ciphers are generally faster than block ciphers.
Fields inherited from class com.kodemuse.security.ssl.CipherSpecImpl |
digest, hashSize, macPad1, macPad2 |
Constructor Summary | |
(package private) |
StreamCipherSpecImpl(CipherSpec spec)
|
Method Summary | |
byte[] |
decrypt(byte[] ba,
int offset,
int len)
|
byte[] |
encrypt(byte[] ba,
int offset,
int len)
|
int |
getIVSize()
|
int |
getKeySize()
|
protected byte[] |
getMAC(ContentType type,
byte[] secret,
long seqNum,
byte[] data,
int offset,
int len)
|
void |
setDecryptKey(byte[] key)
|
void |
setEncryptKey(byte[] key)
|
Methods inherited from class com.kodemuse.security.ssl.CipherSpecImpl |
decrypt, encrypt, getClientFinished, getClientMAC, getClientMAC, getDigest, getFinished, getHashSize, getMAC, getMAC, getServerFinished, getServerMAC, getServerMAC, isBlockCipher, isExportable, isStreamCipher, setClientMACSecret, setServerMACSecret |
Methods inherited from class com.kodemuse.security.ssl.LogCapability |
log, protocolLog |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
StreamCipherSpecImpl(CipherSpec spec) throws java.lang.Exception
Method Detail |
public int getKeySize()
getKeySize
in class CipherSpecImpl
public int getIVSize()
getIVSize
in class CipherSpecImpl
public byte[] decrypt(byte[] ba, int offset, int len)
decrypt
in class CipherSpecImpl
public byte[] encrypt(byte[] ba, int offset, int len)
encrypt
in class CipherSpecImpl
public void setDecryptKey(byte[] key)
setDecryptKey
in class CipherSpecImpl
public void setEncryptKey(byte[] key)
setEncryptKey
in class CipherSpecImpl
protected byte[] getMAC(ContentType type, byte[] secret, long seqNum, byte[] data, int offset, int len)
getMAC
in class CipherSpecImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |