EccMathStrategy
Inheritance: java.lang.Object
public class EccMathStrategy
Base class for convolution strategies
Constructors
Constructor | Description |
---|---|
EccMathStrategy() |
Methods
Method | Description |
---|---|
addPostfix(List |
Adds 0 in the end of bytes to make length of List = x^2, where x is the odd from 7 to 47 |
addPrefix(List |
Adds \u0430 prefix corresponding CreatePrefix |
continueConvolution(List |
This methos continue convolution algorithm from the last stoppage |
createPrefix() | Create the Ecc algorithm prefix. |
doConvolution(List |
The convolution algorithm |
equals(Object arg0) | |
getClass() | |
getListGen() | Gets a list of lists of generation sequences for different summators |
getMemLength() | Gets a number of memory bytes in 1(largest) memory sequence +1 |
getMemNum() | Gets the count of memory sequences(number of input bytes in 1 step) |
getSumNum() | Gets a number of summators (output bytes in 1 step) |
hashCode() | |
notify() | |
notifyAll() | |
setMemLength(int value) | Sets a number of memory bytes in 1(largest) memory sequence +1 |
setMemNum(int value) | Sets the count of memory sequences(number of input bytes in 1 step) |
setSumNum(int value) | Sets a number of summators (output bytes in 1 step) |
stoppageConvolution(List |
Marks a stoppage point |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
EccMathStrategy()
public EccMathStrategy()
addPostfix(List bytes)
public void addPostfix(List<Byte> bytes)
Adds 0 in the end of bytes to make length of List = x^2, where x is the odd from 7 to 47
Parameters:
Parameter | Type | Description |
---|---|---|
bytes | java.util.List<java.lang.Byte> | input bytes |
addPrefix(List bytes)
public void addPrefix(List<Byte> bytes)
Adds \u0430 prefix corresponding CreatePrefix
Parameters:
Parameter | Type | Description |
---|---|---|
bytes | java.util.List<java.lang.Byte> | input list of binary data |
continueConvolution(List inBytes)
public List<Byte> continueConvolution(List<Byte> inBytes)
This methos continue convolution algorithm from the last stoppage
Parameters:
Parameter | Type | Description |
---|---|---|
inBytes | java.util.List<java.lang.Byte> |
Returns: List -
createPrefix()
public List<Byte> createPrefix()
Create the Ecc algorithm prefix.
Returns: List - a prefix
doConvolution(List inBytes)
public List<Byte> doConvolution(List<Byte> inBytes)
The convolution algorithm
Parameters:
Parameter | Type | Description |
---|---|---|
inBytes | java.util.List<java.lang.Byte> | input unprotected bytes |
Returns: List - convoluted bytes
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
getListGen()
public List<List<List<Byte>>> getListGen()
Gets a list of lists of generation sequences for different summators
Returns: List
getMemLength()
public int getMemLength()
Gets a number of memory bytes in 1(largest) memory sequence +1
Returns: int
getMemNum()
public int getMemNum()
Gets the count of memory sequences(number of input bytes in 1 step)
Returns: int
getSumNum()
public int getSumNum()
Gets a number of summators (output bytes in 1 step)
Returns: int
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setMemLength(int value)
public void setMemLength(int value)
Sets a number of memory bytes in 1(largest) memory sequence +1
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setMemNum(int value)
public void setMemNum(int value)
Sets the count of memory sequences(number of input bytes in 1 step)
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setSumNum(int value)
public void setSumNum(int value)
Sets a number of summators (output bytes in 1 step)
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
stoppageConvolution(List inBytes, List outBytes)
public void stoppageConvolution(List<Byte> inBytes, List<Byte> outBytes)
Marks a stoppage point
Parameters:
Parameter | Type | Description |
---|---|---|
inBytes | java.util.List<java.lang.Byte> | input bytes |
outBytes | java.util.List<java.lang.Byte> | already received output bytes |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |