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 classHmacCore.HmacRIPEMD160static classHmacCore.HmacSHA160static classHmacCore.HmacSHA256static classHmacCore.HmacSHA384static classHmacCore.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 intengineGetMacLength()protected voidengineInit(Key secretKey, AlgorithmParameterSpec arg1)protected voidengineReset()protected voidengineUpdate(byte b)protected voidengineUpdate(byte[] bytes, int offset, int length)-
Methods inherited from class javax.crypto.MacSpi
clone, engineUpdate
-
-
-
-
Method Detail
-
engineDoFinal
protected byte[] engineDoFinal()
- Specified by:
engineDoFinalin classMacSpi
-
engineGetMacLength
protected int engineGetMacLength()
- Specified by:
engineGetMacLengthin classMacSpi
-
engineInit
protected void engineInit(Key secretKey, AlgorithmParameterSpec arg1) throws InvalidKeyException, InvalidAlgorithmParameterException
- Specified by:
engineInitin classMacSpi- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineReset
protected void engineReset()
- Specified by:
engineResetin classMacSpi
-
engineUpdate
protected void engineUpdate(byte b)
- Specified by:
engineUpdatein classMacSpi
-
engineUpdate
protected void engineUpdate(byte[] bytes, int offset, int length)- Specified by:
engineUpdatein classMacSpi
-
-