Code example for Mac

Methods: reset

0
        public JCEHMAC(Mac mac) {
            mMac = mac;
        } 
 
        public void reset() { 
            mMac.reset();
        } 
 
        public void update(byte[] data, int off, int len) {
            mMac.update(data, off, len);
        } 
 
        public byte[] finish() { 
            return mMac.doFinal();
        } 
 
        public void finish(byte[] out, int off) throws CraiException {
            try { 
                mMac.doFinal(out, off);
            } catch (GeneralSecurityException x) {
                throw new CraiException(x.toString());