Threefish tweakable block cipher.
This is the 1.3 version of Skein defined in the Skein hash function submission to the NIST SHA-3 competition in October 2010.
Skein was designed by Niels Ferguson - Stefan Lucks - Bruce Schneier - Doug Whiting - Mihir Bellare - Tadayoshi Kohno - Jon Callas - Jesse Walker.
SkeinEngine, SkeinParameters
| Modifier and Type | Field and Description |
|---|---|
| private SkeinEngine | |
| public static final int | SKEIN_1024
1024 bit block size - Skein MAC-1024 |
| public static final int | SKEIN_256
256 bit block size - Skein MAC-256 |
| public static final int | SKEIN_512
512 bit block size - Skein MAC-512 |
| Access | Constructor and Description |
|---|---|
| public | SkeinMac(int stateSizeBits, int
the output/MAC size to produce in bits, which must be an integral number of bytes. digestSizeBits)Constructs a Skein MAC with an internal state size and output size. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | doFinal(byte[]
the array the MAC is to be output to. out, int the offset into the out buffer the output is to start at. outOff)Implements org. |
| public String | getAlgorithmName()
Implements org. |
| public int | getMacSize()
Implements org. |
| public void | init(CipherParameters
an instance of params)SkeinParameters or KeyParameter.Implements org. |
| public void | |
| public void | update(byte
the byte to be processed. in)Implements org. |
| public void | update(byte[]
the array containing the input. in, int the index in the array the data begins at. inOff, int the length of the input starting at inOff. len)Implements org. |
| engine | back to summary |
|---|---|
| private SkeinEngine engine | |
| SKEIN_1024 | back to summary |
|---|---|
| public static final int SKEIN_1024 1024 bit block size - Skein MAC-1024 | |
| SKEIN_256 | back to summary |
|---|---|
| public static final int SKEIN_256 256 bit block size - Skein MAC-256 | |
| SKEIN_512 | back to summary |
|---|---|
| public static final int SKEIN_512 512 bit block size - Skein MAC-512 | |
| SkeinMac | back to summary |
|---|---|
| public SkeinMac(int stateSizeBits, int digestSizeBits) Constructs a Skein MAC with an internal state size and output size.
| |
| SkeinMac | back to summary |
|---|---|
| public SkeinMac(SkeinMac mac) | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) Implements org. Doc from org. Compute the final stage of the MAC writing the output to the out parameter. doFinal leaves the MAC in the same state it was after the last init.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the MAC implements.
| |
| getMacSize | back to summary |
|---|---|
| public int getMacSize() Implements org. Doc from org. Return the block size for this MAC (in bytes).
| |
| init | back to summary |
|---|---|
| public void init(CipherParameters params) throws IllegalArgumentException Implements org. Initialises the Skein digest with the provided parameters.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the MAC. At the end of resetting the MAC should be in the in the same state it was after the last init (if there was one). | |
| update | back to summary |
|---|---|
| public void update(byte in) Implements org. Doc from org. add a single byte to the mac for processing.
| |
| update | back to summary |
|---|---|
| public void update(byte[] in, int inOff, int len) Implements org.
| |