Package org.bouncycastle.crypto.fips
Enum FipsKDF.PRF
- java.lang.Object
-
- java.lang.Enum<FipsKDF.PRF>
-
- org.bouncycastle.crypto.fips.FipsKDF.PRF
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FipsKDF.PRF>
- Enclosing class:
- FipsKDF
public static enum FipsKDF.PRF extends java.lang.Enum<FipsKDF.PRF>
An enumeration of the FIPS approved psuedo-random-function (PRF) for KDFs used with SP 800-108.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES_CMAC
SHA1_HMAC
SHA224_HMAC
SHA256_HMAC
SHA384_HMAC
SHA512_224_HMAC
SHA512_256_HMAC
SHA512_HMAC
TRIPLEDES_CMAC
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FipsAlgorithm
getAlgorithm()
static FipsKDF.PRF
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FipsKDF.PRF[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AES_CMAC
public static final FipsKDF.PRF AES_CMAC
-
TRIPLEDES_CMAC
public static final FipsKDF.PRF TRIPLEDES_CMAC
-
SHA1_HMAC
public static final FipsKDF.PRF SHA1_HMAC
-
SHA224_HMAC
public static final FipsKDF.PRF SHA224_HMAC
-
SHA256_HMAC
public static final FipsKDF.PRF SHA256_HMAC
-
SHA384_HMAC
public static final FipsKDF.PRF SHA384_HMAC
-
SHA512_HMAC
public static final FipsKDF.PRF SHA512_HMAC
-
SHA512_224_HMAC
public static final FipsKDF.PRF SHA512_224_HMAC
-
SHA512_256_HMAC
public static final FipsKDF.PRF SHA512_256_HMAC
-
-
Method Detail
-
values
public static FipsKDF.PRF[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FipsKDF.PRF c : FipsKDF.PRF.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FipsKDF.PRF valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getAlgorithm
public FipsAlgorithm getAlgorithm()
-
-