Package at.favre.lib.crypto.singlstepkdf
Class HFunctionFactory.Default
- java.lang.Object
-
- at.favre.lib.crypto.singlstepkdf.HFunctionFactory.Default
-
- Enclosing interface:
- HFunctionFactory
public static final class HFunctionFactory.Default extends Object
Default implementation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHFunctionFactory.Default.DigestFactorySimple factory for message digestsstatic classHFunctionFactory.Default.MacFactorySimple factory for MAC
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HFunctionFactoryhmacSha256()Creates a factory creating HMAC with SHA-256static HFunctionFactoryhmacSha512()Creates a factory creating HMAC with SHA-512static HFunctionFactorysha256()Creates a factory creating SHA-256static HFunctionFactorysha512()Creates a factory creating SHA-512.
-
-
-
Method Detail
-
sha256
public static HFunctionFactory sha256()
Creates a factory creating SHA-256- Returns:
- factory
-
sha512
public static HFunctionFactory sha512()
Creates a factory creating SHA-512. Be aware that it is not guaranteed that this algorithm is implemented in all JVMs.- Returns:
- factory
-
hmacSha256
public static HFunctionFactory hmacSha256()
Creates a factory creating HMAC with SHA-256- Returns:
- factory
-
hmacSha512
public static HFunctionFactory hmacSha512()
Creates a factory creating HMAC with SHA-512- Returns:
- factory
-
-