Package de.mhus.lib.core.crypt
Class CipherBlockAdd
- java.lang.Object
-
- de.mhus.lib.core.crypt.CipherBlockAdd
-
- All Implemented Interfaces:
CipherBlock
public class CipherBlockAdd extends Object implements CipherBlock
add for encode and sub for decode current block value.- Author:
- mikehummel
-
-
Constructor Summary
Constructors Constructor Description CipherBlockAdd(byte[] block)CipherBlockAdd(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytedecode(byte in)byteencode(byte in)byte[]getBlock()intgetSize()voidreset()
-
-
-
Method Detail
-
getBlock
public byte[] getBlock()
-
getSize
public int getSize()
-
reset
public void reset()
- Specified by:
resetin interfaceCipherBlock
-
encode
public byte encode(byte in)
- Specified by:
encodein interfaceCipherBlock
-
decode
public byte decode(byte in)
- Specified by:
decodein interfaceCipherBlock
-
-