public enum CryptoAlgorithm extends Enum<CryptoAlgorithm>
| Enum Constant and Description |
|---|
AES_CBC_NOPADDING_128
AES/CBC/NoPadding 128
|
AES_CBC_NOPADDING_256
AES/CBC/NoPadding 256
|
AES_CBC_PKCS5_128
AES/CBC/PKCS5Padding 128
|
AES_CBC_PKCS5_256
AES/CBC/PKCS5Padding 256
|
AES_CTR_NOPADDING_128
AES/CTR/NoPadding 128
|
AES_CTR_NOPADDING_256
AES/CTR/NoPadding 256
|
AES_GCM_NOPADDING_128
AES/GCM/NoPadding 128
|
AES_GCM_NOPADDING_256
AES/GCM/NoPadding 256
|
SM4_CBC_NOPADDING_128
SM4/CBC/NoPadding 128
|
SM4_CBC_PKCS5_128
SM4/CBC/PKCS5Padding 128
|
SM4_CTR_NOPADDING_128
SM4/CTR/NoPadding 128
|
SM4_GCM_NOPADDING_128
SM4/GCM/NoPadding 128
|
| Modifier and Type | Method and Description |
|---|---|
void |
digestAlgorithm(MessageDigest digest) |
static CryptoAlgorithm |
getAlgorithm(int value) |
int |
getBlockSize() |
String |
getCryptoName() |
int |
getIvLen() |
int |
getKeyLen() |
String |
getKeyName() |
String |
getKeySpec() |
AlgorithmParameterSpec |
getSpec(byte[] iv) |
int |
getTagLen() |
int |
getValue() |
boolean |
isWithAad() |
static CryptoAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CryptoAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CryptoAlgorithm AES_GCM_NOPADDING_128
public static final CryptoAlgorithm AES_GCM_NOPADDING_256
public static final CryptoAlgorithm AES_CBC_NOPADDING_128
public static final CryptoAlgorithm AES_CBC_NOPADDING_256
public static final CryptoAlgorithm AES_CBC_PKCS5_128
public static final CryptoAlgorithm AES_CBC_PKCS5_256
public static final CryptoAlgorithm AES_CTR_NOPADDING_128
public static final CryptoAlgorithm AES_CTR_NOPADDING_256
public static final CryptoAlgorithm SM4_GCM_NOPADDING_128
public static final CryptoAlgorithm SM4_CBC_NOPADDING_128
public static final CryptoAlgorithm SM4_CBC_PKCS5_128
public static final CryptoAlgorithm SM4_CTR_NOPADDING_128
public static CryptoAlgorithm[] values()
for (CryptoAlgorithm c : CryptoAlgorithm.values()) System.out.println(c);
public static CryptoAlgorithm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getKeyName()
public String getKeySpec()
public String getCryptoName()
public int getKeyLen()
public int getIvLen()
public int getTagLen()
public int getBlockSize()
public int getValue()
public boolean isWithAad()
public AlgorithmParameterSpec getSpec(byte[] iv)
public void digestAlgorithm(MessageDigest digest)
public static CryptoAlgorithm getAlgorithm(int value)
Copyright © 2020. All rights reserved.