Package | Description |
---|---|
cn.orionsec.kit.lang.utils.crypto | |
cn.orionsec.kit.lang.utils.crypto.enums | |
cn.orionsec.kit.lang.utils.crypto.symmetric |
Modifier and Type | Method and Description |
---|---|
static SecretKey |
Keys.generatorKey(byte[] key,
CipherAlgorithm mode) |
static SecretKey |
Keys.generatorKey(byte[] key,
int keySize,
CipherAlgorithm mode) |
static SecretKey |
Keys.generatorKey(byte[] key,
int keySize,
CipherAlgorithm mode,
String algorithm,
String provider)
String -> SecretKey
|
static SecretKey |
Keys.generatorKey(String key,
CipherAlgorithm mode) |
static SecretKey |
Keys.generatorKey(String key,
int keySize,
CipherAlgorithm mode) |
static GCMParameterSpec |
Keys.getGcmSpec(CipherAlgorithm mode,
byte[] gcm) |
static int |
Keys.getGcmSpecLength(CipherAlgorithm mode)
获取 GCM 规格长度
|
static IvParameterSpec |
Keys.getIvSpec(CipherAlgorithm mode,
byte[] iv) |
static int |
Keys.getIvSpecLength(CipherAlgorithm mode)
获取 IV 规格长度
|
static int |
Keys.getKeySpecLength(CipherAlgorithm mode)
获取 key 规格长度
|
static SecretKey |
Keys.getSecretKey(byte[] key,
CipherAlgorithm mode)
StringKey -> SecretKey
|
static SecretKey |
Keys.getSecretKey(String key,
CipherAlgorithm mode)
StringKey -> SecretKey
|
Modifier and Type | Method and Description |
---|---|
static CipherAlgorithm |
CipherAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CipherAlgorithm[] |
CipherAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
protected CipherAlgorithm |
SymmetricBuilder.algorithm
加密算法
|
protected CipherAlgorithm |
BaseSymmetric.algorithm
加密算法
|
Modifier and Type | Method and Description |
---|---|
CipherAlgorithm |
BaseSymmetric.getAlgorithm() |
Modifier and Type | Method and Description |
---|---|
SymmetricBuilder |
SymmetricBuilder.algorithm(CipherAlgorithm algorithm)
设置加密算法
|
Constructor and Description |
---|
BaseSymmetric(CipherAlgorithm cipherAlgorithm,
WorkingMode workingMode,
PaddingMode paddingMode,
SecretKey secretKey) |
EcbSymmetric(CipherAlgorithm algorithm,
PaddingMode paddingMode,
SecretKey secretKey) |
EcbSymmetric(CipherAlgorithm algorithm,
SecretKey secretKey) |
ParamSymmetric(CipherAlgorithm cipherAlgorithm,
WorkingMode workingMode,
PaddingMode paddingMode,
SecretKey secretKey,
AlgorithmParameterSpec paramSpec) |
ParamSymmetric(CipherAlgorithm cipherAlgorithm,
WorkingMode workingMode,
SecretKey secretKey,
AlgorithmParameterSpec paramSpec) |
Copyright © 2024. All rights reserved.