Class HmacCore
- java.lang.Object
-
- javax.crypto.MacSpi
-
- com.fortanix.sdkms.jce.provider.macs.HmacCore
-
- Direct Known Subclasses:
HmacCore.HmacRIPEMD160
,HmacCore.HmacSHA160
,HmacCore.HmacSHA256
,HmacCore.HmacSHA384
,HmacCore.HmacSHA512
public class HmacCore extends MacSpi
This class constitutes the core of HMAC-algorithms, where can be SHA1, SHA-256, SHA-384, and SHA-512
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HmacCore.HmacRIPEMD160
static class
HmacCore.HmacSHA160
static class
HmacCore.HmacSHA256
static class
HmacCore.HmacSHA384
static class
HmacCore.HmacSHA512
-
Constructor Summary
Constructors Constructor Description HmacCore(com.fortanix.sdkms.v1.model.DigestAlgorithm algorithm, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
engineDoFinal()
protected int
engineGetMacLength()
protected void
engineInit(Key secretKey, AlgorithmParameterSpec arg1)
protected void
engineReset()
protected void
engineUpdate(byte b)
protected void
engineUpdate(byte[] bytes, int offset, int length)
-
Methods inherited from class javax.crypto.MacSpi
clone, engineUpdate
-
-
-
-
Method Detail
-
engineDoFinal
protected byte[] engineDoFinal()
- Specified by:
engineDoFinal
in classMacSpi
-
engineGetMacLength
protected int engineGetMacLength()
- Specified by:
engineGetMacLength
in classMacSpi
-
engineInit
protected void engineInit(Key secretKey, AlgorithmParameterSpec arg1) throws InvalidKeyException, InvalidAlgorithmParameterException
- Specified by:
engineInit
in classMacSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineReset
protected void engineReset()
- Specified by:
engineReset
in classMacSpi
-
engineUpdate
protected void engineUpdate(byte b)
- Specified by:
engineUpdate
in classMacSpi
-
engineUpdate
protected void engineUpdate(byte[] bytes, int offset, int length)
- Specified by:
engineUpdate
in classMacSpi
-
-