Interface ISymCipher
- 
- All Known Implementing Classes:
- EaxAesCipher,- EcbAesCipher,- GcmAesCipher,- NullCipher
 
 public interface ISymCipher
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]decrypt(byte[] cipher)Decrypts a message.byte[]decrypt(byte[] cipher, int offset, int len)Decrypts a message.byte[]encrypt(byte[] plain)Encrypts a message.byte[]encrypt(byte[] plain, int offset, int len)Encrypts a message.
 
- 
- 
- 
Method Detail- 
encryptbyte[] encrypt(byte[] plain) Encrypts a message.- Parameters:
- plain- Plain text.
- Returns:
- Cipher text.
 
 - 
encryptbyte[] encrypt(byte[] plain, int offset, int len)Encrypts a message.- Parameters:
- plain- Plain text.
- offset- Offset where the plain text starts.
- len- Length of the plain text, -1 for rest of the array.
- Returns:
- Cipher text.
 
 - 
decryptbyte[] decrypt(byte[] cipher) Decrypts a message.- Parameters:
- cipher- Cipher text.
- Returns:
- Plain text.
 
 - 
decryptbyte[] decrypt(byte[] cipher, int offset, int len)Decrypts a message.- Parameters:
- cipher- Cipher text.
- offset- Offset where the cipher text starts.
- len- Length of the cipher text, -1 for rest of the array.
- Returns:
- Plain text.
 
 
- 
 
-