Class RetailMAC


  • public class RetailMAC
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] buffer  
      private byte[] c  
      private javax.crypto.Cipher cipher  
      private javax.crypto.SecretKey desedekey  
      private javax.crypto.SecretKey deskey  
      private javax.crypto.spec.IvParameterSpec ivspec  
      private int offset  
    • Constructor Summary

      Constructors 
      Constructor Description
      RetailMAC​(java.security.Key key, javax.crypto.spec.IvParameterSpec iv)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] doFinal()  
      byte[] doFinal​(byte[] data)  
      int getMacLength()  
      private void hashIt()  
      void reset()  
      void update​(byte data)  
      void update​(byte[] ibuffer, int offset1, int len)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • deskey

        private javax.crypto.SecretKey deskey
      • desedekey

        private javax.crypto.SecretKey desedekey
      • ivspec

        private javax.crypto.spec.IvParameterSpec ivspec
      • buffer

        private byte[] buffer
      • offset

        private int offset
      • c

        private byte[] c
      • cipher

        private javax.crypto.Cipher cipher
    • Constructor Detail

      • RetailMAC

        public RetailMAC​(java.security.Key key,
                         javax.crypto.spec.IvParameterSpec iv)
    • Method Detail

      • doFinal

        public byte[] doFinal​(byte[] data)
      • doFinal

        public byte[] doFinal()
      • update

        public void update​(byte data)
      • reset

        public void reset()
      • getMacLength

        public int getMacLength()
      • update

        public void update​(byte[] ibuffer,
                           int offset1,
                           int len)
      • hashIt

        private void hashIt()