public class DesParameters extends AbstractBlockCipherParameters<DesParameters>
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_DES
Algorithm for DES encryption.
|
static int |
KEY_SIZE_DES_56
56-bit key size for DES encryption.
|
BLOCK_MODE_CBC, BLOCK_MODE_CCM, BLOCK_MODE_CFB, BLOCK_MODE_CTR, BLOCK_MODE_CTS, BLOCK_MODE_ECB, BLOCK_MODE_GCM, BLOCK_MODE_OFB, BLOCK_MODE_PCBC, DEFAULT_BLOCK_SIZE, DEFAULT_PARAM_SPEC_SIZE_GCM, GCM_AUTH_TAG_LEN_104, GCM_AUTH_TAG_LEN_112, GCM_AUTH_TAG_LEN_120, GCM_AUTH_TAG_LEN_128, GCM_AUTH_TAG_LEN_96, PADDING_NONE, PADDING_PKCS5, PADDING_PKCS7KEY_SIZE_128, KEY_SIZE_192, KEY_SIZE_256, MAC_ALGORITHM_HMAC_MD5, MAC_ALGORITHM_HMAC_SHA1, MAC_ALGORITHM_HMAC_SHA224, MAC_ALGORITHM_HMAC_SHA256, MAC_ALGORITHM_HMAC_SHA3_224, MAC_ALGORITHM_HMAC_SHA3_256, MAC_ALGORITHM_HMAC_SHA3_384, MAC_ALGORITHM_HMAC_SHA3_512, MAC_ALGORITHM_HMAC_SHA384, MAC_ALGORITHM_HMAC_SHA512, MAC_ALGORITHM_HMAC_SHA512_224, MAC_ALGORITHM_HMAC_SHA512_256, MAC_KEY_SIZE_128, MAC_KEY_SIZE_160| Constructor and Description |
|---|
DesParameters()
Initializes the DesParameters.
|
DesParameters(TextEncoder textEncoder)
Initializes the DesParameters with a
TextEncoder which is used to decode the key when
set as a string. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDefaultAlgorithm()
Returns the defaultAlgorithm.
|
protected int |
getDefaultKeySize()
Returns the defaultKeySize.
|
createParameterSpec, getBlockMode, getBlockSize, getDefaultBlockSize, getGcmTagLen, getPadding, getParameterSpec, getParameterSpecSize, getTransformation, setBlockMode, setBlockSize, setGcmTagLen, setPaddinggenerateKeyData, getDecryptionKey, getKey, loadKey, setKey, setKey, setKey, setKeyLoadergenerateParameterSpecData, getAlgorithm, getEncryptionKey, getKeySize, getMacAlgorithm, getMacKey, getMacKeySize, getProvider, getProviderName, hasDecryptionKey, hasEncryptionKey, parseAndVerifySalt, setAlgorithm, setDecryptionKey, setDecryptionKey, setDecryptionKey, setDecryptionKeyLoader, setEncryptionKey, setEncryptionKey, setEncryptionKey, setEncryptionKeyLoader, setKeySize, setMacAlgorithm, setMacKey, setMacKey, setMacKey, setMacKeyLoader, setMacKeySize, setProvider, setProviderName, setSaltGenerator, setSaltMatcherclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateParameterSpecData, getAlgorithm, getEncryptionKey, getKeySize, getMacAlgorithm, getMacKey, getMacKeySize, getProvider, getProviderName, setKeySize, setMacAlgorithm, setMacKey, setMacKey, setMacKey, setMacKeyLoader, setMacKeySize, setProvider, setProviderName, setSaltGenerator, setSaltMatcherpublic static final String ALGORITHM_DES
public static final int KEY_SIZE_DES_56
public DesParameters()
public DesParameters(TextEncoder textEncoder)
TextEncoder which is used to decode the key when
set as a string. The default transformation is 'DES/CBC/PKCS5Padding' with a block size of 8
bytes and key size of 56 bits.textEncoder - the TextEncoderprotected String getDefaultAlgorithm()
getDefaultAlgorithm in class AbstractAlgorithmParameters<DesParameters>protected int getDefaultKeySize()
getDefaultKeySize in class AbstractAlgorithmParameters<DesParameters>