| Modifier and Type | Class and Description |
|---|---|
| public static class | Twofish.
Factory for Twofish AEAD encryption/decryption operators. |
| public static class | Twofish.
Parameters for Twofish AEAD and MAC modes. |
| private static class | |
| public static class | Twofish.
Twofish key generator. |
| public static class | Twofish.
Factory for Twofish key wrap/unwrap operators. |
| public static class | Twofish.
Factory for producing Twofish MAC calculators. |
| public static class | Twofish.
Factory for basic Twofish encryption/decryption operators. |
| public static class | Twofish.
Parameters for general Twofish block cipher modes. |
| public static class | Twofish.
General WRAP operator parameters for KW and KWP. |
| Modifier and Type | Field and Description |
|---|---|
| public static final GeneralAlgorithm | ALGORITHM
Raw Twofish algorithm, can be used for creating general purpose Twofish keys. |
| public static final Twofish. | CBC
Twofish in cipher block chaining (CBC) mode. |
| public static final Twofish. | CBCwithCS1
Twofish in cipher block chaining mode cipher text stealing type 1. |
| public static final Twofish. | CBCwithCS2
Twofish in cipher block chaining mode cipher text stealing type 2. |
| public static final Twofish. | CBCwithCS3
Twofish in cipher block chaining mode cipher text stealing type 3. |
| public static final Twofish. | CBCwithISO10126_2
Twofish in cipher block chaining mode with ISO10126-2 padding. |
| public static final Twofish. | CBCwithISO7816_4
Twofish in cipher block chaining mode with ISO7816-4 padding. |
| public static final Twofish. | CBCwithPKCS7
Twofish in cipher block chaining mode with PKCS#7/PKCS#5 padding. |
| public static final Twofish. | CBCwithTBC
Twofish in cipher block chaining mode with trailing bit complement (TBC) padding. |
| public static final Twofish. | CBCwithX923
Twofish in cipher block chaining mode with X9.23 padding. |
| public static final Twofish. | CCM
Twofish in counter with CBC-MAC (CCM). |
| public static final Twofish. | CFB128
Twofish in cipher feedback (CFB) mode, 128 bit block size. |
| public static final Twofish. | CFB8
Twofish in cipher feedback (CFB) mode, 8 bit block size. |
| public static final Twofish. | CMAC
Twofish cipher-based MAC algorithm. |
| public static final Twofish. | CTR
Twofish in counter (CTR) mode. |
| public static final Twofish. | EAX
Twofish in EAX mode. |
| public static final Twofish. | ECB
Twofish in electronic code book (ECB) mode. |
| public static final Twofish. | ECBwithISO10126_2
Twofish in electronic code book mode with ISO10126-2 padding. |
| public static final Twofish. | ECBwithISO7816_4
Twofish in electronic code book mode with ISO7816-4 padding. |
| public static final Twofish. | ECBwithPKCS7
Twofish in electronic code book mode with PKCS#7/PKCS#5 padding. |
| public static final Twofish. | ECBwithTBC
Twofish in electronic code book mode with trailing bit complement (TBC) padding. |
| public static final Twofish. | ECBwithX923
Twofish in electronic code book mode with X9.23 padding. |
| private static final Twofish. | |
| public static final Twofish. | GCM
Twofish in Galois/Counter Mode (GCM). |
| public static final Twofish. | GMAC
Twofish cipher-based GMAC algorithm. |
| public static final Twofish. | KW
Twofish as a FIPS/RFC 3394 key wrapper. |
| public static final Twofish. | KWP
Twofish as a FIPS/RFC 3394 key wrapper with padding. |
| public static final Twofish. | OCB
Twofish in offset code book (OCB) mode. |
| public static final Twofish. | OFB
Twofish in output feedback (OFB) mode. |
| public static final Twofish. | OpenPGPCFB
Twofish in OpenPGP cipher feedback (CFB) mode. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static ValidatedSymmetricKey |
| ALGORITHM | back to summary |
|---|---|
| public static final GeneralAlgorithm ALGORITHM Raw Twofish algorithm, can be used for creating general purpose Twofish keys. | |
| CBC | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher block chaining (CBC) mode. | |
| CBCwithCS1 | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher block chaining mode cipher text stealing type 1. | |
| CBCwithCS2 | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher block chaining mode cipher text stealing type 2. | |
| CBCwithCS3 | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher block chaining mode cipher text stealing type 3. | |
| CBCwithISO10126_2 | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher block chaining mode with ISO10126-2 padding. | |
| CBCwithISO7816_4 | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher block chaining mode with ISO7816-4 padding. | |
| CBCwithPKCS7 | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher block chaining mode with PKCS#7/PKCS#5 padding. | |
| CBCwithTBC | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher block chaining mode with trailing bit complement (TBC) padding. | |
| CBCwithX923 | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher block chaining mode with X9.23 padding. | |
| CCM | back to summary |
|---|---|
| public static final Twofish. Twofish in counter with CBC-MAC (CCM). | |
| CFB128 | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher feedback (CFB) mode, 128 bit block size. | |
| CFB8 | back to summary |
|---|---|
| public static final Twofish. Twofish in cipher feedback (CFB) mode, 8 bit block size. | |
| CMAC | back to summary |
|---|---|
| public static final Twofish. Twofish cipher-based MAC algorithm. | |
| CTR | back to summary |
|---|---|
| public static final Twofish. Twofish in counter (CTR) mode. | |
| EAX | back to summary |
|---|---|
| public static final Twofish. Twofish in EAX mode. | |
| ECB | back to summary |
|---|---|
| public static final Twofish. Twofish in electronic code book (ECB) mode. | |
| ECBwithISO10126_2 | back to summary |
|---|---|
| public static final Twofish. Twofish in electronic code book mode with ISO10126-2 padding. | |
| ECBwithISO7816_4 | back to summary |
|---|---|
| public static final Twofish. Twofish in electronic code book mode with ISO7816-4 padding. | |
| ECBwithPKCS7 | back to summary |
|---|---|
| public static final Twofish. Twofish in electronic code book mode with PKCS#7/PKCS#5 padding. | |
| ECBwithTBC | back to summary |
|---|---|
| public static final Twofish. Twofish in electronic code book mode with trailing bit complement (TBC) padding. | |
| ECBwithX923 | back to summary |
|---|---|
| public static final Twofish. Twofish in electronic code book mode with X9.23 padding. | |
| ENGINE_PROVIDER | back to summary |
|---|---|
| private static final Twofish. | |
| GCM | back to summary |
|---|---|
| public static final Twofish. Twofish in Galois/Counter Mode (GCM). | |
| GMAC | back to summary |
|---|---|
| public static final Twofish. Twofish cipher-based GMAC algorithm. | |
| KW | back to summary |
|---|---|
| public static final Twofish. Twofish as a FIPS/RFC 3394 key wrapper. | |
| KWP | back to summary |
|---|---|
| public static final Twofish. Twofish as a FIPS/RFC 3394 key wrapper with padding. | |
| OCB | back to summary |
|---|---|
| public static final Twofish. Twofish in offset code book (OCB) mode. | |
| OFB | back to summary |
|---|---|
| public static final Twofish. Twofish in output feedback (OFB) mode. | |
| OpenPGPCFB | back to summary |
|---|---|
| public static final Twofish. Twofish in OpenPGP cipher feedback (CFB) mode. | |
| Twofish | back to summary |
|---|---|
| private Twofish() | |
| invalidKeySize | back to summary |
|---|---|
| private static boolean invalidKeySize(int keyLength) | |
| validateKey | back to summary |
|---|---|
| private static ValidatedSymmetricKey validateKey(SymmetricKey key, Algorithm paramAlgorithm) | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected AEADBlockCipher | createAEADCipher(boolean forEncryption, SymmetricKey key, Twofish.
Implements abstract org. |
| AEADOperatorFactory | back to summary |
|---|---|
| public AEADOperatorFactory() | |
| createAEADCipher | back to summary |
|---|---|
| protected AEADBlockCipher createAEADCipher(boolean forEncryption, SymmetricKey key, Twofish. Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Twofish. | create(GeneralAlgorithm algorithm, byte[] iv, int macSizeInBits)
Implements abstract org. |
| AuthParameters | back to summary |
|---|---|
| private AuthParameters(GeneralAlgorithm algorithm, byte[] iv, int macLenInBits) | |
| AuthParameters | back to summary |
|---|---|
| pack-priv AuthParameters(GeneralAlgorithm algorithm) Base constructor - the algorithm, null IV. In this case the tag length defaults to the 128 for GCM, CMAC, or GMAC, 64 bits otherwise.
| |
| create | back to summary |
|---|---|
| protected Twofish. Implements abstract org. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public BlockCipher |
| EngineProvider | back to summary |
|---|---|
| private EngineProvider() | |
| createEngine | back to summary |
|---|---|
| public BlockCipher createEngine() Implements org. | |
| Modifier and Type | Field and Description |
|---|---|
| private final GeneralAlgorithm | |
| private final int | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | |
| public | KeyGenerator(GeneralParameters<T extends Algorithm> parameterSet, int keySizeInBits, SecureRandom random)
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public SymmetricKey | doGenerateKey()
Implements abstract org. |
| algorithm | back to summary |
|---|---|
| private final GeneralAlgorithm algorithm | |
| keySizeInBits | back to summary |
|---|---|
| private final int keySizeInBits | |
| random | back to summary |
|---|---|
| private final SecureRandom random | |
| KeyGenerator | back to summary |
|---|---|
| public KeyGenerator(int keySizeInBits, SecureRandom random) | |
| KeyGenerator | back to summary |
|---|---|
| public KeyGenerator(GeneralParameters<T extends Algorithm> parameterSet, int keySizeInBits, SecureRandom random) | |
| KeyGenerator | back to summary |
|---|---|
| private KeyGenerator(GeneralAlgorithm algorithm, int keySizeInBits, SecureRandom random) | |
| doGenerateKey | back to summary |
|---|---|
| public SymmetricKey doGenerateKey() Implements abstract org. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Wrapper | createWrapper(boolean forWrapping, SymmetricKey key, Twofish.
Implements abstract org. |
| KeyWrapOperatorFactory | back to summary |
|---|---|
| public KeyWrapOperatorFactory() | |
| createWrapper | back to summary |
|---|---|
| protected Wrapper createWrapper(boolean forWrapping, SymmetricKey key, Twofish. Implements abstract org. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | calculateMACSize(Twofish.
Implements abstract org. |
| protected Mac | createMAC(SymmetricKey key, final Twofish.
Implements abstract org. |
| MACOperatorFactory | back to summary |
|---|---|
| public MACOperatorFactory() | |
| calculateMACSize | back to summary |
|---|---|
| protected int calculateMACSize(Twofish. Implements abstract org.
| |
| createMAC | back to summary |
|---|---|
| protected Mac createMAC(SymmetricKey key, final Twofish. Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected BufferedBlockCipher | createCipher(boolean forEncryption, SymmetricKey key, Twofish.
Implements abstract org. |
| OperatorFactory | back to summary |
|---|---|
| public OperatorFactory() | |
| createCipher | back to summary |
|---|---|
| protected BufferedBlockCipher createCipher(boolean forEncryption, SymmetricKey key, Twofish. Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Twofish. | create(GeneralAlgorithm algorithm, byte[] iv)
Implements abstract org. |
| Parameters | back to summary |
|---|---|
| private Parameters(GeneralAlgorithm algorithm, byte[] iv) | |
| Parameters | back to summary |
|---|---|
| pack-priv Parameters(GeneralAlgorithm algorithm) | |
| create | back to summary |
|---|---|
| protected Twofish. Implements abstract org. | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | getIV()
Implements org. |
| private int | |
| public boolean | |
| public Twofish. | withIV(byte[]
the IV to use. iv)Implements org. |
| public Twofish. | withIV(SecureRandom
the SecureRandom to use as the source of IV data. random)Implements org. |
| public Twofish. |
| iv | back to summary |
|---|---|
| private final byte[] iv | |
| useInverse | back to summary |
|---|---|
| private final boolean useInverse | |
| WrapParameters | back to summary |
|---|---|
| pack-priv WrapParameters(GeneralAlgorithm algorithm) | |
| WrapParameters | back to summary |
|---|---|
| private WrapParameters(GeneralAlgorithm algorithm, byte[] iv, boolean useInverse) | |
| getIV | back to summary |
|---|---|
| public byte[] getIV() Implements org. Doc from org. Return the initialization vector associated with this parameter set.
| |
| getIvLength | back to summary |
|---|---|
| private int getIvLength() | |
| isUsingInverseFunction | back to summary |
|---|---|
| public boolean isUsingInverseFunction() | |
| withIV | back to summary |
|---|---|
| public Twofish. Implements org. Doc from org. Create a new parameter set with a different IV.
| |
| withIV | back to summary |
|---|---|
| public Twofish. Implements org. Doc from org. Create a new parameter set with a different IV based on the output of the passed in random.
| |
| withUsingInverseFunction | back to summary |
|---|---|
| public Twofish. | |