Class MAC

  • Direct Known Subclasses:
    MessageMac

    public class MAC
    extends java.lang.Object
    Version:
    $Id: MAC.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
    Author:
    Christian Plattner, plattner@trilead.com
    • Constructor Detail

      • MAC

        public MAC​(java.lang.String type,
                   byte[] key)
        Parameters:
        type - the MAC algorithm to use
        key - the key to use in the MAC
    • Method Detail

      • getMacList

        @Deprecated
        public static java.lang.String[] getMacList()
        Deprecated.
        Get mac list string [ ].
        Returns:
        the string [ ]
      • checkMacList

        @Deprecated
        public static void checkMacList​(java.lang.String[] macs)
        Check mac list.
        Parameters:
        macs - the macs
      • getKeyLen

        @Deprecated
        public static int getKeyLen​(java.lang.String type)
        Gets key len.
        Parameters:
        type - the type
        Returns:
        the key len
      • initMac

        public void initMac​(int seq)
      • update

        public void update​(byte[] packetdata,
                           int off,
                           int len)
      • getMac

        public void getMac​(byte[] out,
                           int off)
      • size

        public int size()