This is the 1.3 version of Threefish defined in the Skein hash function submission to the NIST SHA-3 competition in October 2010.
Threefish was designed by Niels Ferguson - Stefan Lucks - Bruce Schneier - Doug Whiting - Mihir Bellare - Tadayoshi Kohno - Jon Callas - Jesse Walker.
This implementation inlines all round functions, unrolls 8 rounds, and uses 1.2k of static tables
to speed up key schedule injection.
2 x block size state is retained by each cipher instance.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | BLOCKSIZE_1024
1024 bit block size - Threefish-1024 |
| public static final int | BLOCKSIZE_256
256 bit block size - Threefish-256 |
| public static final int | BLOCKSIZE_512
512 bit block size - Threefish-512 |
| private int | blocksizeBytes
Block size in bytes |
| private int | blocksizeWords
Block size in 64 bit words |
| private static final long | C_240
Key schedule parity constant |
| private ThreefishEngine. | cipher
The internal cipher implementation (varies by blocksize) |
| private long[] | currentBlock
Buffer for byte oriented processBytes to call internal word API |
| private boolean | |
| private long[] | kw
Key schedule words |
| private static final int | MAX_ROUNDS
Max rounds of any of the variants |
| private static int[] | |
| private static int[] | |
| private static int[] | |
| private static int[] | |
| private static final int | ROUNDS_1024
Rounds in Threefish-1024 |
| private static final int | ROUNDS_256
Rounds in Threefish-256 |
| private static final int | ROUNDS_512
Rounds in Threefish-512 |
| private long[] | t
Tweak bytes (2 byte t1,t2, calculated t3 and repeat of t1,t2 for modulo free lookup |
| private static final int | TWEAK_SIZE_BYTES
Size of the tweak in bytes (always 128 bit/16 bytes) |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | ThreefishEngine(final int blocksizeBits)
Constructs a new Threefish cipher, with a specified block size. |
| Modifier and Type | Method and Description |
|---|---|
| public static long | bytesToWord(final byte[] bytes, final int off)
Deprecated
Will be removed
Read a single 64 bit word from input in LSB first order. |
| public String | getAlgorithmName()
Implements org. Return the name of the algorithm the cipher implements. |
| public int | getBlockSize()
Implements org. Return the block size for this cipher (in bytes). |
| public void | init(boolean
if true the cipher is initialised for
encryption, if false for decryption. forEncryption, CipherParameters an instance of params)TweakableBlockCipherParameters, or KeyParameter (to
use a 0 tweak)Implements org. Initialise the engine. |
| public void | init(boolean
the cipher mode. forEncryption, final long[] the words of the key, or key, final long[] null to use the current key.the 2 word (128 bit) tweak, or tweak)null to use the current tweak.Initialise the engine, specifying the key and tweak directly. |
| public int | processBlock(byte[]
the array containing the input data. in, int offset into the in array the data starts at. inOff, byte[] the array the output data will be copied into. out, int the offset into the out array the output will start at. outOff)Implements org. Process one block of input from the array in and write it to the out array. |
| public int | Returns: the number of 8 byte words processed (which will be the same as the block size).a block sized buffer of words to process. in, long[] a block sized buffer of words to receive the output of the operation. out)Process a block of data represented as 64 bit words. |
| public void | |
| pack-priv static long | |
| private void | |
| private void | |
| public static void | wordToBytes(final long word, final byte[] bytes, final int off)
Deprecated
Will be removed
Write a 64 bit word to output in LSB first order. |
| pack-priv static long |
| BLOCKSIZE_1024 | back to summary |
|---|---|
| public static final int BLOCKSIZE_1024 1024 bit block size - Threefish-1024 | |
| BLOCKSIZE_256 | back to summary |
|---|---|
| public static final int BLOCKSIZE_256 256 bit block size - Threefish-256 | |
| BLOCKSIZE_512 | back to summary |
|---|---|
| public static final int BLOCKSIZE_512 512 bit block size - Threefish-512 | |
| blocksizeBytes | back to summary |
|---|---|
| private int blocksizeBytes Block size in bytes | |
| blocksizeWords | back to summary |
|---|---|
| private int blocksizeWords Block size in 64 bit words | |
| C_240 | back to summary |
|---|---|
| private static final long C_240 Key schedule parity constant | |
| cipher | back to summary |
|---|---|
| private ThreefishEngine. The internal cipher implementation (varies by blocksize) | |
| currentBlock | back to summary |
|---|---|
| private long[] currentBlock Buffer for byte oriented processBytes to call internal word API | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| kw | back to summary |
|---|---|
| private long[] kw Key schedule words | |
| MAX_ROUNDS | back to summary |
|---|---|
| private static final int MAX_ROUNDS Max rounds of any of the variants | |
| MOD17 | back to summary |
|---|---|
| private static int[] MOD17 | |
| MOD3 | back to summary |
|---|---|
| private static int[] MOD3 | |
| MOD5 | back to summary |
|---|---|
| private static int[] MOD5 | |
| MOD9 | back to summary |
|---|---|
| private static int[] MOD9 | |
| ROUNDS_1024 | back to summary |
|---|---|
| private static final int ROUNDS_1024 Rounds in Threefish-1024 | |
| ROUNDS_256 | back to summary |
|---|---|
| private static final int ROUNDS_256 Rounds in Threefish-256 | |
| ROUNDS_512 | back to summary |
|---|---|
| private static final int ROUNDS_512 Rounds in Threefish-512 | |
| t | back to summary |
|---|---|
| private long[] t Tweak bytes (2 byte t1,t2, calculated t3 and repeat of t1,t2 for modulo free lookup | |
| TWEAK_SIZE_BYTES | back to summary |
|---|---|
| private static final int TWEAK_SIZE_BYTES Size of the tweak in bytes (always 128 bit/16 bytes) | |
| TWEAK_SIZE_WORDS | back to summary |
|---|---|
| private static final int TWEAK_SIZE_WORDS | |
| ThreefishEngine | back to summary |
|---|---|
| public ThreefishEngine(final int blocksizeBits) Constructs a new Threefish cipher, with a specified block size.
| |
| bytesToWord | back to summary |
|---|---|
| public static long bytesToWord(final byte[] bytes, final int off)
Deprecated Will be removed Read a single 64 bit word from input in LSB first order. | |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm the cipher implements.
| |
| getBlockSize | back to summary |
|---|---|
| public int getBlockSize() Implements org. Doc from org. Return the block size for this cipher (in bytes).
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException Implements org. Initialise the engine.
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, final long[] key, final long[] tweak) Initialise the engine, specifying the key and tweak directly.
| |
| processBlock | back to summary |
|---|---|
| public int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws DataLengthException, IllegalStateException Implements org. Doc from org. Process one block of input from the array in and write it to the out array.
| |
| processBlock | back to summary |
|---|---|
| public int processBlock(long[] in, long[] out) throws DataLengthException, IllegalStateException Process a block of data represented as 64 bit words.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one). | |
| rotlXor | back to summary |
|---|---|
| pack-priv static long rotlXor(long x, int n, long xor) Rotate left + xor part of the mix operation. | |
| setKey | back to summary |
|---|---|
| private void setKey(long[] key) | |
| setTweak | back to summary |
|---|---|
| private void setTweak(long[] tweak) | |
| wordToBytes | back to summary |
|---|---|
| public static void wordToBytes(final long word, final byte[] bytes, final int off)
Deprecated Will be removed Write a 64 bit word to output in LSB first order. | |
| xorRotr | back to summary |
|---|---|
| pack-priv static long xorRotr(long x, int n, long xor) Rotate xor + rotate right part of the unmix operation. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | ROTATION_0_0
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | ROTATION_0_1
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | ROTATION_0_2
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | ROTATION_0_3
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | decryptBlock(long[] block, long[] state)
Implements abstract org.
|
| pack-priv void | encryptBlock(long[] block, long[] out)
Implements abstract org.
|
| ROTATION_0_0 | back to summary |
|---|---|
| private static final int ROTATION_0_0 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_0_1 | back to summary |
|---|---|
| private static final int ROTATION_0_1 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_0_2 | back to summary |
|---|---|
| private static final int ROTATION_0_2 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_0_3 | back to summary |
|---|---|
| private static final int ROTATION_0_3 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_0_4 | back to summary |
|---|---|
| private static final int ROTATION_0_4 | |
| ROTATION_0_5 | back to summary |
|---|---|
| private static final int ROTATION_0_5 | |
| ROTATION_0_6 | back to summary |
|---|---|
| private static final int ROTATION_0_6 | |
| ROTATION_0_7 | back to summary |
|---|---|
| private static final int ROTATION_0_7 | |
| ROTATION_1_0 | back to summary |
|---|---|
| private static final int ROTATION_1_0 | |
| ROTATION_1_1 | back to summary |
|---|---|
| private static final int ROTATION_1_1 | |
| ROTATION_1_2 | back to summary |
|---|---|
| private static final int ROTATION_1_2 | |
| ROTATION_1_3 | back to summary |
|---|---|
| private static final int ROTATION_1_3 | |
| ROTATION_1_4 | back to summary |
|---|---|
| private static final int ROTATION_1_4 | |
| ROTATION_1_5 | back to summary |
|---|---|
| private static final int ROTATION_1_5 | |
| ROTATION_1_6 | back to summary |
|---|---|
| private static final int ROTATION_1_6 | |
| ROTATION_1_7 | back to summary |
|---|---|
| private static final int ROTATION_1_7 | |
| ROTATION_2_0 | back to summary |
|---|---|
| private static final int ROTATION_2_0 | |
| ROTATION_2_1 | back to summary |
|---|---|
| private static final int ROTATION_2_1 | |
| ROTATION_2_2 | back to summary |
|---|---|
| private static final int ROTATION_2_2 | |
| ROTATION_2_3 | back to summary |
|---|---|
| private static final int ROTATION_2_3 | |
| ROTATION_2_4 | back to summary |
|---|---|
| private static final int ROTATION_2_4 | |
| ROTATION_2_5 | back to summary |
|---|---|
| private static final int ROTATION_2_5 | |
| ROTATION_2_6 | back to summary |
|---|---|
| private static final int ROTATION_2_6 | |
| ROTATION_2_7 | back to summary |
|---|---|
| private static final int ROTATION_2_7 | |
| ROTATION_3_0 | back to summary |
|---|---|
| private static final int ROTATION_3_0 | |
| ROTATION_3_1 | back to summary |
|---|---|
| private static final int ROTATION_3_1 | |
| ROTATION_3_2 | back to summary |
|---|---|
| private static final int ROTATION_3_2 | |
| ROTATION_3_3 | back to summary |
|---|---|
| private static final int ROTATION_3_3 | |
| ROTATION_3_4 | back to summary |
|---|---|
| private static final int ROTATION_3_4 | |
| ROTATION_3_5 | back to summary |
|---|---|
| private static final int ROTATION_3_5 | |
| ROTATION_3_6 | back to summary |
|---|---|
| private static final int ROTATION_3_6 | |
| ROTATION_3_7 | back to summary |
|---|---|
| private static final int ROTATION_3_7 | |
| ROTATION_4_0 | back to summary |
|---|---|
| private static final int ROTATION_4_0 | |
| ROTATION_4_1 | back to summary |
|---|---|
| private static final int ROTATION_4_1 | |
| ROTATION_4_2 | back to summary |
|---|---|
| private static final int ROTATION_4_2 | |
| ROTATION_4_3 | back to summary |
|---|---|
| private static final int ROTATION_4_3 | |
| ROTATION_4_4 | back to summary |
|---|---|
| private static final int ROTATION_4_4 | |
| ROTATION_4_5 | back to summary |
|---|---|
| private static final int ROTATION_4_5 | |
| ROTATION_4_6 | back to summary |
|---|---|
| private static final int ROTATION_4_6 | |
| ROTATION_4_7 | back to summary |
|---|---|
| private static final int ROTATION_4_7 | |
| ROTATION_5_0 | back to summary |
|---|---|
| private static final int ROTATION_5_0 | |
| ROTATION_5_1 | back to summary |
|---|---|
| private static final int ROTATION_5_1 | |
| ROTATION_5_2 | back to summary |
|---|---|
| private static final int ROTATION_5_2 | |
| ROTATION_5_3 | back to summary |
|---|---|
| private static final int ROTATION_5_3 | |
| ROTATION_5_4 | back to summary |
|---|---|
| private static final int ROTATION_5_4 | |
| ROTATION_5_5 | back to summary |
|---|---|
| private static final int ROTATION_5_5 | |
| ROTATION_5_6 | back to summary |
|---|---|
| private static final int ROTATION_5_6 | |
| ROTATION_5_7 | back to summary |
|---|---|
| private static final int ROTATION_5_7 | |
| ROTATION_6_0 | back to summary |
|---|---|
| private static final int ROTATION_6_0 | |
| ROTATION_6_1 | back to summary |
|---|---|
| private static final int ROTATION_6_1 | |
| ROTATION_6_2 | back to summary |
|---|---|
| private static final int ROTATION_6_2 | |
| ROTATION_6_3 | back to summary |
|---|---|
| private static final int ROTATION_6_3 | |
| ROTATION_6_4 | back to summary |
|---|---|
| private static final int ROTATION_6_4 | |
| ROTATION_6_5 | back to summary |
|---|---|
| private static final int ROTATION_6_5 | |
| ROTATION_6_6 | back to summary |
|---|---|
| private static final int ROTATION_6_6 | |
| ROTATION_6_7 | back to summary |
|---|---|
| private static final int ROTATION_6_7 | |
| ROTATION_7_0 | back to summary |
|---|---|
| private static final int ROTATION_7_0 | |
| ROTATION_7_1 | back to summary |
|---|---|
| private static final int ROTATION_7_1 | |
| ROTATION_7_2 | back to summary |
|---|---|
| private static final int ROTATION_7_2 | |
| ROTATION_7_3 | back to summary |
|---|---|
| private static final int ROTATION_7_3 | |
| ROTATION_7_4 | back to summary |
|---|---|
| private static final int ROTATION_7_4 | |
| ROTATION_7_5 | back to summary |
|---|---|
| private static final int ROTATION_7_5 | |
| ROTATION_7_6 | back to summary |
|---|---|
| private static final int ROTATION_7_6 | |
| ROTATION_7_7 | back to summary |
|---|---|
| private static final int ROTATION_7_7 | |
| Threefish1024Cipher | back to summary |
|---|---|
| public Threefish1024Cipher(long[] kw, long[] t) | |
| decryptBlock | back to summary |
|---|---|
| pack-priv void decryptBlock(long[] block, long[] state) Implements abstract org. | |
| encryptBlock | back to summary |
|---|---|
| pack-priv void encryptBlock(long[] block, long[] out) Implements abstract org. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | ROTATION_0_0
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | ROTATION_0_1
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | decryptBlock(long[] block, long[] state)
Implements abstract org.
|
| pack-priv void | encryptBlock(long[] block, long[] out)
Implements abstract org.
|
| ROTATION_0_0 | back to summary |
|---|---|
| private static final int ROTATION_0_0 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_0_1 | back to summary |
|---|---|
| private static final int ROTATION_0_1 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_1_0 | back to summary |
|---|---|
| private static final int ROTATION_1_0 | |
| ROTATION_1_1 | back to summary |
|---|---|
| private static final int ROTATION_1_1 | |
| ROTATION_2_0 | back to summary |
|---|---|
| private static final int ROTATION_2_0 | |
| ROTATION_2_1 | back to summary |
|---|---|
| private static final int ROTATION_2_1 | |
| ROTATION_3_0 | back to summary |
|---|---|
| private static final int ROTATION_3_0 | |
| ROTATION_3_1 | back to summary |
|---|---|
| private static final int ROTATION_3_1 | |
| ROTATION_4_0 | back to summary |
|---|---|
| private static final int ROTATION_4_0 | |
| ROTATION_4_1 | back to summary |
|---|---|
| private static final int ROTATION_4_1 | |
| ROTATION_5_0 | back to summary |
|---|---|
| private static final int ROTATION_5_0 | |
| ROTATION_5_1 | back to summary |
|---|---|
| private static final int ROTATION_5_1 | |
| ROTATION_6_0 | back to summary |
|---|---|
| private static final int ROTATION_6_0 | |
| ROTATION_6_1 | back to summary |
|---|---|
| private static final int ROTATION_6_1 | |
| ROTATION_7_0 | back to summary |
|---|---|
| private static final int ROTATION_7_0 | |
| ROTATION_7_1 | back to summary |
|---|---|
| private static final int ROTATION_7_1 | |
| Threefish256Cipher | back to summary |
|---|---|
| public Threefish256Cipher(long[] kw, long[] t) | |
| decryptBlock | back to summary |
|---|---|
| pack-priv void decryptBlock(long[] block, long[] state) Implements abstract org. | |
| encryptBlock | back to summary |
|---|---|
| pack-priv void encryptBlock(long[] block, long[] out) Implements abstract org. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | ROTATION_0_0
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | ROTATION_0_1
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | ROTATION_0_2
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | ROTATION_0_3
Mix rotation constants defined in Skein 1.3 specification |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | decryptBlock(long[] block, long[] state)
Implements abstract org.
|
| public void | encryptBlock(long[] block, long[] out)
Implements abstract org.
|
| ROTATION_0_0 | back to summary |
|---|---|
| private static final int ROTATION_0_0 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_0_1 | back to summary |
|---|---|
| private static final int ROTATION_0_1 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_0_2 | back to summary |
|---|---|
| private static final int ROTATION_0_2 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_0_3 | back to summary |
|---|---|
| private static final int ROTATION_0_3 Mix rotation constants defined in Skein 1.3 specification | |
| ROTATION_1_0 | back to summary |
|---|---|
| private static final int ROTATION_1_0 | |
| ROTATION_1_1 | back to summary |
|---|---|
| private static final int ROTATION_1_1 | |
| ROTATION_1_2 | back to summary |
|---|---|
| private static final int ROTATION_1_2 | |
| ROTATION_1_3 | back to summary |
|---|---|
| private static final int ROTATION_1_3 | |
| ROTATION_2_0 | back to summary |
|---|---|
| private static final int ROTATION_2_0 | |
| ROTATION_2_1 | back to summary |
|---|---|
| private static final int ROTATION_2_1 | |
| ROTATION_2_2 | back to summary |
|---|---|
| private static final int ROTATION_2_2 | |
| ROTATION_2_3 | back to summary |
|---|---|
| private static final int ROTATION_2_3 | |
| ROTATION_3_0 | back to summary |
|---|---|
| private static final int ROTATION_3_0 | |
| ROTATION_3_1 | back to summary |
|---|---|
| private static final int ROTATION_3_1 | |
| ROTATION_3_2 | back to summary |
|---|---|
| private static final int ROTATION_3_2 | |
| ROTATION_3_3 | back to summary |
|---|---|
| private static final int ROTATION_3_3 | |
| ROTATION_4_0 | back to summary |
|---|---|
| private static final int ROTATION_4_0 | |
| ROTATION_4_1 | back to summary |
|---|---|
| private static final int ROTATION_4_1 | |
| ROTATION_4_2 | back to summary |
|---|---|
| private static final int ROTATION_4_2 | |
| ROTATION_4_3 | back to summary |
|---|---|
| private static final int ROTATION_4_3 | |
| ROTATION_5_0 | back to summary |
|---|---|
| private static final int ROTATION_5_0 | |
| ROTATION_5_1 | back to summary |
|---|---|
| private static final int ROTATION_5_1 | |
| ROTATION_5_2 | back to summary |
|---|---|
| private static final int ROTATION_5_2 | |
| ROTATION_5_3 | back to summary |
|---|---|
| private static final int ROTATION_5_3 | |
| ROTATION_6_0 | back to summary |
|---|---|
| private static final int ROTATION_6_0 | |
| ROTATION_6_1 | back to summary |
|---|---|
| private static final int ROTATION_6_1 | |
| ROTATION_6_2 | back to summary |
|---|---|
| private static final int ROTATION_6_2 | |
| ROTATION_6_3 | back to summary |
|---|---|
| private static final int ROTATION_6_3 | |
| ROTATION_7_0 | back to summary |
|---|---|
| private static final int ROTATION_7_0 | |
| ROTATION_7_1 | back to summary |
|---|---|
| private static final int ROTATION_7_1 | |
| ROTATION_7_2 | back to summary |
|---|---|
| private static final int ROTATION_7_2 | |
| ROTATION_7_3 | back to summary |
|---|---|
| private static final int ROTATION_7_3 | |
| Threefish512Cipher | back to summary |
|---|---|
| protected Threefish512Cipher(long[] kw, long[] t) | |
| decryptBlock | back to summary |
|---|---|
| public void decryptBlock(long[] block, long[] state) Implements abstract org. | |
| encryptBlock | back to summary |
|---|---|
| public void encryptBlock(long[] block, long[] out) Implements abstract org. | |
| Modifier and Type | Field and Description |
|---|---|
| protected final long[] | kw
The extended + repeated key words |
| protected final long[] | t
The extended + repeated tweak words |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract void | |
| pack-priv abstract void |
| kw | back to summary |
|---|---|
| protected final long[] kw The extended + repeated key words | |
| t | back to summary |
|---|---|
| protected final long[] t The extended + repeated tweak words | |
| ThreefishCipher | back to summary |
|---|---|
| protected ThreefishCipher(final long[] kw, final long[] t) | |
| decryptBlock | back to summary |
|---|---|
| pack-priv abstract void decryptBlock(long[] block, long[] out) | |
| encryptBlock | back to summary |
|---|---|
| pack-priv abstract void encryptBlock(long[] block, long[] out) | |