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 | |
| private final CryptoServicePurpose | |
| public static final int | SKEIN_1024
1024 bit block size - Skein-1024 |
| public static final int | SKEIN_256
256 bit block size - Skein-256 |
| public static final int | SKEIN_512
512 bit block size - Skein-512 |
| Access | Constructor and Description |
|---|---|
| public | SkeinDigest(int stateSizeBits, int
the output/digest size to produce in bits, which must be an integral number of
bytes. digestSizeBits)Constructs a Skein digest with an internal state size and output size. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Memoable | copy()
Implements org. Produce a copy of this object with its configuration and in its current state. |
| public int | doFinal(byte[]
the array the digest is to be copied into. out, int the offset into the out array the digest is to start at. outOff)Implements org. close the digest, producing the final digest value. |
| public String | getAlgorithmName()
Implements org. return the algorithm name |
| public int | getByteLength()
Implements org. Return the size in bytes of the internal buffer the digest applies it's compression function to. |
| public int | getDigestSize()
Implements org. return the size, in bytes, of the digest produced by this message digest. |
| public void | init(SkeinParameters
the parameters to apply to this engine, or params)null to use no parameters.Optionally initialises the Skein digest with the provided parameters. |
| public void | reset(Memoable
an object originally other)copied from an object of the same type as this instance.Implements org. Restore a copied object state into this object. |
| public void | reset()
Implements org. reset the digest back to it's initial state. |
| public void | update(byte
the input byte to be entered. in)Implements org. update the message digest with a single byte. |
| public void | update(byte[]
the byte array containing the data. in, int the offset into the byte array where the data starts. inOff, int the length of the data. len)Implements org. update the message digest with a block of bytes. |
| engine | back to summary |
|---|---|
| private SkeinEngine engine | |
| purpose | back to summary |
|---|---|
| private final CryptoServicePurpose purpose | |
| SKEIN_1024 | back to summary |
|---|---|
| public static final int SKEIN_1024 1024 bit block size - Skein-1024 | |
| SKEIN_256 | back to summary |
|---|---|
| public static final int SKEIN_256 256 bit block size - Skein-256 | |
| SKEIN_512 | back to summary |
|---|---|
| public static final int SKEIN_512 512 bit block size - Skein-512 | |
| SkeinDigest | back to summary |
|---|---|
| public SkeinDigest(int stateSizeBits, int digestSizeBits) Constructs a Skein digest with an internal state size and output size.
| |
| SkeinDigest | back to summary |
|---|---|
| public SkeinDigest(int stateSizeBits, int digestSizeBits, CryptoServicePurpose purpose) | |
| SkeinDigest | back to summary |
|---|---|
| public SkeinDigest(SkeinDigest digest) | |
| copy | back to summary |
|---|---|
| public Memoable copy() Implements org. Doc from org. Produce a copy of this object with its configuration and in its current state. The returned object may be used simply to store the state, or may be used as a similar object starting from the copied state. | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] out, int outOff) Implements org. Doc from org. close the digest, producing the final digest value. The doFinal call leaves the digest reset.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. return the algorithm name
| |
| getByteLength | back to summary |
|---|---|
| public int getByteLength() Implements org. Doc from org. Return the size in bytes of the internal buffer the digest applies it's compression function to.
| |
| getDigestSize | back to summary |
|---|---|
| public int getDigestSize() Implements org. Doc from org. return the size, in bytes, of the digest produced by this message digest.
| |
| init | back to summary |
|---|---|
| public void init(SkeinParameters params) Optionally initialises the Skein digest with the provided parameters.
| |
| reset | back to summary |
|---|---|
| public void reset(Memoable other) Implements org. Doc from org. Restore a copied object state into this object. Implementations of this method should try to avoid or minimise memory allocation to perform the reset. | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. reset the digest back to it's initial state. | |
| update | back to summary |
|---|---|
| public void update(byte in) Implements org. Doc from org. update the message digest with a single byte.
| |
| update | back to summary |
|---|---|
| public void update(byte[] in, int inOff, int len) Implements org. Doc from org. update the message digest with a block of bytes.
| |