Package com.wolfssl.provider.jce
Class WolfCryptMac
java.lang.Object
javax.crypto.MacSpi
com.wolfssl.provider.jce.WolfCryptMac
- Direct Known Subclasses:
WolfCryptMac.wcHmacMD5
,WolfCryptMac.wcHmacSHA1
,WolfCryptMac.wcHmacSHA256
,WolfCryptMac.wcHmacSHA384
,WolfCryptMac.wcHmacSHA512
public class WolfCryptMac
extends javax.crypto.MacSpi
wolfCrypt JCE Mac wrapper
- Version:
- 1.0, March 2017
- Author:
- wolfSSL
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WolfCryptMac.wcHmacMD5
static class
WolfCryptMac.wcHmacSHA1
static class
WolfCryptMac.wcHmacSHA256
static class
WolfCryptMac.wcHmacSHA384
static class
WolfCryptMac.wcHmacSHA512
-
Method Summary
Modifier and Type Method Description protected byte[]
engineDoFinal()
protected int
engineGetMacLength()
protected void
engineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params)
protected void
engineReset()
protected void
engineUpdate(byte input)
protected void
engineUpdate(byte[] input, int offset, int len)
protected void
finalize()
-
Method Details
-
engineDoFinal
protected byte[] engineDoFinal()- Specified by:
engineDoFinal
in classjavax.crypto.MacSpi
-
engineGetMacLength
protected int engineGetMacLength()- Specified by:
engineGetMacLength
in classjavax.crypto.MacSpi
-
engineInit
protected void engineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException- Specified by:
engineInit
in classjavax.crypto.MacSpi
- Throws:
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
-
engineReset
protected void engineReset()- Specified by:
engineReset
in classjavax.crypto.MacSpi
-
engineUpdate
protected void engineUpdate(byte input)- Specified by:
engineUpdate
in classjavax.crypto.MacSpi
-
engineUpdate
protected void engineUpdate(byte[] input, int offset, int len)- Specified by:
engineUpdate
in classjavax.crypto.MacSpi
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-