Class PredefinedMacParameters


  • public final class PredefinedMacParameters
    extends java.lang.Object
    Pre-defined Parameter objects for Mac.

    Note: if you want to keep dependencies small, consider inlining the constants here.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static AesCmacParameters AES_CMAC
      A Parameters object for generating new instances of CmacKey with the following parameters: Key size: 32 bytes Tag size: 16 bytes OutputPrefixType: TINK
      static HmacParameters HMAC_SHA256_128BITTAG
      A Parameters object for generating new instances of HmacKey with the following parameters: Key size: 32 bytes Tag size: 16 bytes Hash function: SHA256 OutputPrefixType: TINK
      static HmacParameters HMAC_SHA256_256BITTAG
      A Parameters object for generating new instances of HmacKey with the following parameters: Key size: 32 bytes Tag size: 32 bytes Hash function: SHA256 OutputPrefixType: TINK
      static HmacParameters HMAC_SHA512_256BITTAG
      A Parameters object for generating new instances of HmacKey with the following parameters: Key size: 64 bytes Tag size: 32 bytes Hash function: SHA512 OutputPrefixType: TINK
      static HmacParameters HMAC_SHA512_512BITTAG
      A Parameters object for generating new instances of HmacKey with the following parameters: Key size: 64 bytes Tag size: 64 bytes Hash function: SHA512 OutputPrefixType: TINK
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • HMAC_SHA256_128BITTAG

        public static final HmacParameters HMAC_SHA256_128BITTAG
        A Parameters object for generating new instances of HmacKey with the following parameters:
        • Key size: 32 bytes
        • Tag size: 16 bytes
        • Hash function: SHA256
        • OutputPrefixType: TINK
      • HMAC_SHA256_256BITTAG

        public static final HmacParameters HMAC_SHA256_256BITTAG
        A Parameters object for generating new instances of HmacKey with the following parameters:
        • Key size: 32 bytes
        • Tag size: 32 bytes
        • Hash function: SHA256
        • OutputPrefixType: TINK
      • HMAC_SHA512_256BITTAG

        public static final HmacParameters HMAC_SHA512_256BITTAG
        A Parameters object for generating new instances of HmacKey with the following parameters:
        • Key size: 64 bytes
        • Tag size: 32 bytes
        • Hash function: SHA512
        • OutputPrefixType: TINK
      • HMAC_SHA512_512BITTAG

        public static final HmacParameters HMAC_SHA512_512BITTAG
        A Parameters object for generating new instances of HmacKey with the following parameters:
        • Key size: 64 bytes
        • Tag size: 64 bytes
        • Hash function: SHA512
        • OutputPrefixType: TINK
      • AES_CMAC

        public static final AesCmacParameters AES_CMAC
        A Parameters object for generating new instances of CmacKey with the following parameters:
        • Key size: 32 bytes
        • Tag size: 16 bytes
        • OutputPrefixType: TINK