|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rsa.ace.techservice.cipher.AgentDesCsmCipher
public class AgentDesCsmCipher
| Constructor Summary | |
|---|---|
AgentDesCsmCipher(byte[] keyData)
|
|
| Method Summary | |
|---|---|
int |
decryptPacket(byte[] agentEncryption,
int decryptionOffset,
byte[] cleartext)
Decrypts encrypted data starting at the offset provided. |
int |
encryptPacket(byte[] cleartext,
int cleartextLength,
int encryptionOffset,
byte[] agentEncryption)
This encrypts the bytes passed starting at the offset provided. |
byte |
getCipherID()
This returns the cipher ID of this provider. |
int |
getMaxEncryptedSize(int inputSize)
This function provides the maximium amount of expansion encryption adds to a packet. |
void |
setKey(byte[] keyData)
Sets the key to the byte array provided. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgentDesCsmCipher(byte[] keyData)
throws AgentCipherException
AgentCipherException| Method Detail |
|---|
public void setKey(byte[] keyData)
throws AgentCipherException
AgentCipherProvider
setKey in interface AgentCipherProviderkeyData - The key to be used for encryption & decryption.
AgentCipherException - If the key is null or the length is not valid.AgentCipherProvider.setKey(byte[])
public int decryptPacket(byte[] agentEncryption,
int decryptionOffset,
byte[] cleartext)
throws AgentCipherException
AgentCipherProvider
decryptPacket in interface AgentCipherProvideragentEncryption - The data to be decrypted.decryptionOffset - The offset at which the encrypted data starts.cleartext - The cleartext buffer filled upon return.
AgentCipherException - If crypto errors occur or parameters are invalid.AgentCipherProvider.decryptPacket(byte[],
int, byte[])
public int encryptPacket(byte[] cleartext,
int cleartextLength,
int encryptionOffset,
byte[] agentEncryption)
throws AgentCipherException
AgentCipherProvider
encryptPacket in interface AgentCipherProvidercleartext - The cleartext buffer to be encrypted.cleartextLength - The length of the cleartext buffer to be encrypted.encryptionOffset - The offset at which the data should be encrypted.agentEncryption - The returned encrypted data.
AgentCipherException - If crypto errors occur or parameters are invalid.AgentCipherProvider.encryptPacket(byte[],
int, int, byte[])public byte getCipherID()
AgentCipherProvider
getCipherID in interface AgentCipherProviderAgentCipherProvider.getCipherID()public int getMaxEncryptedSize(int inputSize)
AgentCipherProvider
getMaxEncryptedSize in interface AgentCipherProviderinputSize - The size of the cleartext input.
AgentCipherProvider.getMaxEncryptedSize(int)
|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||