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 classWolfCryptMac.wcHmacMD5static classWolfCryptMac.wcHmacSHA1static classWolfCryptMac.wcHmacSHA256static classWolfCryptMac.wcHmacSHA384static classWolfCryptMac.wcHmacSHA512 -
Method Summary
Modifier and Type Method Description protected byte[]engineDoFinal()protected intengineGetMacLength()protected voidengineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params)protected voidengineReset()protected voidengineUpdate(byte input)protected voidengineUpdate(byte[] input, int offset, int len)protected voidfinalize()
-
Method Details
-
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 key, java.security.spec.AlgorithmParameterSpec params) 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 input)- Specified by:
engineUpdatein classjavax.crypto.MacSpi
-
engineUpdate
protected void engineUpdate(byte[] input, int offset, int len)- Specified by:
engineUpdatein classjavax.crypto.MacSpi
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-