Class PrfKeyTemplates


  • @Deprecated
    public final class PrfKeyTemplates
    extends java.lang.Object
    Deprecated.
    Use PredefinedPrfParameters instead.
    Key templates for PRF-Keys.

    We recommend to avoid this class in order to keep dependencies small.

    • Using this class adds a dependency on protobuf. We hope that eventually it is possible to use Tink without a dependency on protobuf.
    • Using this class adds a dependency on classes for all involved key types.
    These dependencies all come from static class member variables, which are initialized when the class is loaded. This implies that static analysis and code minimization tools (such as proguard) cannot remove the usages either.

    Instead, we recommend to use KeysetHandle.generateEntryFromParametersName or KeysetHandle.generateEntryFromParameters.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.google.crypto.tink.proto.KeyTemplate AES_CMAC_PRF
      Deprecated.
       
      static com.google.crypto.tink.proto.KeyTemplate HKDF_SHA256
      Deprecated.
      Generates a KeyTemplate for a HkdfPrfKey key with the following parameters.
      static com.google.crypto.tink.proto.KeyTemplate HMAC_SHA256_PRF
      Deprecated.
       
      static com.google.crypto.tink.proto.KeyTemplate HMAC_SHA512_PRF
      Deprecated.
       
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • HKDF_SHA256

        public static final com.google.crypto.tink.proto.KeyTemplate HKDF_SHA256
        Deprecated.
        Generates a KeyTemplate for a HkdfPrfKey key with the following parameters.
        • Hash function: SHA256
        • HMAC key size: 32 bytes
        • Salt: empty
      • HMAC_SHA256_PRF

        public static final com.google.crypto.tink.proto.KeyTemplate HMAC_SHA256_PRF
        Deprecated.
      • HMAC_SHA512_PRF

        public static final com.google.crypto.tink.proto.KeyTemplate HMAC_SHA512_PRF
        Deprecated.
      • AES_CMAC_PRF

        public static final com.google.crypto.tink.proto.KeyTemplate AES_CMAC_PRF
        Deprecated.