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)
ProprietaryOrJCECipher
decrypt
in class ProprietaryOrJCECipher
bytes
- the sequence of bytes to be decryptedpublic byte[] encrypt(byte[] bytes)
ProprietaryOrJCECipher
encrypt
in class ProprietaryOrJCECipher
bytes
- the sequence of input bytes to be encryptedpublic void generatePrivateAndPublicKey(ProprietaryOrJCECipherCallbackObject callbackObject)
ProprietaryOrJCECipher
generatePrivateAndPublicKey
in class ProprietaryOrJCECipher
callbackObject
- the callback Object (e.g. containing the server's Connection handler) that is available for directing callback methods to.public java.lang.String getAlgorithm()
ProprietaryOrJCECipher
getAlgorithm
in class ProprietaryOrJCECipher
@Deprecated public void getPublishedKey(java.io.DataInputStream in) throws java.io.IOException
in
- -java.io.IOException
- -public byte[] getPublishInfo()
ProprietaryOrJCECipher
getPublishInfo
in class ProprietaryOrJCECipher
public void setPublishedInfo(byte[] cipherInfo)
ProprietaryOrJCECipher
setPublishedInfo
in class ProprietaryOrJCECipher
cipherInfo
- The byte array containing all the needed info to set up the Cipher