Code example for Mac

Methods: doFinal, getMacLength

0
	} 
 
	@Override 
	public int getMAC(byte[] data, int offset) throws CryptoException {
		try { 
			hmac.doFinal(data, offset);
			return hmac.getMacLength();
		} catch (Exception e) {
			throw new CryptoException(e);
		} 
	} 
 
	@Override 
	public void reset() throws CryptoException { 
		hmac.reset();
	} 
 
	@Override 
	public void update(byte[] data) throws CryptoException {
		if (data == null)
			return;