Class AESCMAC

  • All Implemented Interfaces:

    
    public class AESCMAC
    
                        

    CMAC implementation according to NIST 800-38B.

    Author:

    Daniel Andrade

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      AESCMAC()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static Array<byte> get(Array<byte> key, Array<byte> data) Calculate the CMAC of data.
      static Array<byte> get(Array<byte> key, Array<byte> data, Array<byte> aesIv)
      • Methods inherited from class java.lang.Object

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

      • AESCMAC

        AESCMAC()
    • Method Detail

      • get

         static Array<byte> get(Array<byte> key, Array<byte> data)

        Calculate the CMAC of data.

        Parameters:
        key - the secret key
        data - the data
        Returns:

        the CMAC