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 javax.crypto.MacSpiThis 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(java.security.Key secretKey, java.security.spec.AlgorithmParameterSpec arg1)protected voidengineReset()protected voidengineUpdate(byte b)protected voidengineUpdate(byte[] bytes, int offset, int length)
-
-
-
Method Detail
-
engineDoFinal
protected byte[] engineDoFinal()
- Specified by:
engineDoFinalin classjavax.crypto.MacSpi
-
engineGetMacLength
protected int engineGetMacLength()
- Specified by:
engineGetMacLengthin classjavax.crypto.MacSpi
-
engineInit
protected void engineInit(java.security.Key secretKey, java.security.spec.AlgorithmParameterSpec arg1) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException- Specified by:
engineInitin classjavax.crypto.MacSpi- Throws:
java.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterException
-
engineReset
protected void engineReset()
- Specified by:
engineResetin classjavax.crypto.MacSpi
-
engineUpdate
protected void engineUpdate(byte b)
- Specified by:
engineUpdatein classjavax.crypto.MacSpi
-
engineUpdate
protected void engineUpdate(byte[] bytes, int offset, int length)- Specified by:
engineUpdatein classjavax.crypto.MacSpi
-
-