public class SPE extends ProprietaryOrJCECipher
| Constructor and Description |
|---|
SPE() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] bytes)
decrypts the given byte stream
|
byte[] |
encrypt(byte[] bytes)
Encrypts the given byte stream
|
void |
generatePrivateAndPublicKey(ProprietaryOrJCECipherCallbackObject callbackObject)
Generates or obtains all the private stuff that the encryption protocol needs to do encryption/decryption.
|
java.lang.String |
getAlgorithm()
Gets The algorithm name
|
void |
getPublishedKey(java.io.DataInputStream in)
Deprecated.
change to setup using the generic CIPHERINFO field
|
byte[] |
getPublishInfo()
Gets a byte array containing all the specific info needed to set up en-/decryption.
|
void |
setPublishedInfo(byte[] cipherInfo)
Sets all the specific info needed to set up en-/decryption.
|
public byte[] decrypt(byte[] bytes)
ProprietaryOrJCECipherdecrypt in class ProprietaryOrJCECipherbytes - the sequence of bytes to be decryptedpublic byte[] encrypt(byte[] bytes)
ProprietaryOrJCECipherencrypt in class ProprietaryOrJCECipherbytes - the sequence of input bytes to be encryptedpublic void generatePrivateAndPublicKey(ProprietaryOrJCECipherCallbackObject callbackObject)
ProprietaryOrJCECiphergeneratePrivateAndPublicKey in class ProprietaryOrJCECiphercallbackObject - the callback Object (e.g. containing the server's Connection handler) that is available for directing callback methods to.public java.lang.String getAlgorithm()
ProprietaryOrJCECiphergetAlgorithm in class ProprietaryOrJCECipher@Deprecated
public void getPublishedKey(java.io.DataInputStream in)
throws java.io.IOException
in - -java.io.IOException - -public byte[] getPublishInfo()
ProprietaryOrJCECiphergetPublishInfo in class ProprietaryOrJCECipherpublic void setPublishedInfo(byte[] cipherInfo)
ProprietaryOrJCECiphersetPublishedInfo in class ProprietaryOrJCECiphercipherInfo - The byte array containing all the needed info to set up the Cipher