public static enum Encryption.KeyDerivationFunction extends Enum<Encryption.KeyDerivationFunction> implements KeyDerivationFunction
Modifier and Type | Method and Description |
---|---|
VariantDictionary |
createKdfParameters()
Create default KDF parameters
|
static KeyDerivationFunction |
getKdf(UUID kdfUuid)
Find a KDF that matches this Uuid
|
UUID |
getKdfUuid()
The UUID of this key derivation function
|
String |
getName()
Get a name
|
byte[] |
getTransformedKey(byte[] key,
VariantDictionary transformParams)
Transform a key using this key derivation function
|
static Encryption.KeyDerivationFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Encryption.KeyDerivationFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Encryption.KeyDerivationFunction AES
public static final Encryption.KeyDerivationFunction ARGON2
public static Encryption.KeyDerivationFunction[] values()
for (Encryption.KeyDerivationFunction c : Encryption.KeyDerivationFunction.values()) System.out.println(c);
public static Encryption.KeyDerivationFunction 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 static KeyDerivationFunction getKdf(UUID kdfUuid)
kdfUuid
- the Uuid to matchIllegalArgumentException
- if the Uuid is not knownpublic UUID getKdfUuid()
KeyDerivationFunction
getKdfUuid
in interface KeyDerivationFunction
public byte[] getTransformedKey(byte[] key, VariantDictionary transformParams)
KeyDerivationFunction
getTransformedKey
in interface KeyDerivationFunction
key
- the key to transformtransformParams
- the parameters defining the way the transformation is to be carried outpublic VariantDictionary createKdfParameters()
KeyDerivationFunction
createKdfParameters
in interface KeyDerivationFunction
public String getName()
KeyDerivationFunction
getName
in interface KeyDerivationFunction
Copyright © 2023. All rights reserved.