test_class.file: java_src/src/test/java/com/google/crypto/tink/mac/AesCmacKeyManagerTest.java
test_class.identifier: AesCmacKeyManagerTest
test_case.body: @Test
    public void testAes256CmacTemplate() throws Exception {
      KeyTemplate template = AesCmacKeyManager.aes256CmacTemplate();
      assertThat(template.getTypeUrl()).isEqualTo(new AesCmacKeyManager().getKeyType());
      assertThat(template.getOutputPrefixType()).isEqualTo(KeyTemplate.OutputPrefixType.TINK);
      AesCmacKeyFormat format =
          AesCmacKeyFormat.parseFrom(template.getValue(), ExtensionRegistryLite.getEmptyRegistry());
  
      assertThat(format.getKeySize()).isEqualTo(32);
      assertThat(format.getParams().getTagSize()).isEqualTo(16);
    }
test_case.class_method_signature: AesCmacKeyManagerTest.testAes256CmacTemplate()
test_case.full_signature: @Test public void testAes256CmacTemplate()
test_case.identifier: testAes256CmacTemplate
test_case.invocations: aes256CmacTemplate isEqualTo assertThat getTypeUrl getKeyType isEqualTo assertThat getOutputPrefixType parseFrom getValue getEmptyRegistry isEqualTo assertThat getKeySize isEqualTo assertThat getTagSize getParams
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAes256CmacTemplate()
focal_class.declarator: VERSION = 0
focal_class.modifier: private static final
focal_class.original_string: private static final int VERSION = 0;
focal_class.type: int
focal_class.var_name: VERSION
focal_class.declarator: KEY_SIZE_IN_BYTES = 32
focal_class.modifier: private static final
focal_class.original_string: private static final int KEY_SIZE_IN_BYTES = 32;
focal_class.type: int
focal_class.var_name: KEY_SIZE_IN_BYTES
focal_class.declarator: MIN_TAG_SIZE_IN_BYTES = 10
focal_class.modifier: private static final
focal_class.original_string: private static final int MIN_TAG_SIZE_IN_BYTES = 10;
focal_class.type: int
focal_class.var_name: MIN_TAG_SIZE_IN_BYTES
focal_class.declarator: MAX_TAG_SIZE_IN_BYTES = 16
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_TAG_SIZE_IN_BYTES = 16;
focal_class.type: int
focal_class.var_name: MAX_TAG_SIZE_IN_BYTES
focal_class.file: java_src/src/main/java/com/google/crypto/tink/mac/AesCmacKeyManager.java
focal_class.identifier: AesCmacKeyManager
focal_class.class_method_signature: AesCmacKeyManager.AesCmacKeyManager()
focal_class.full_signature:   AesCmacKeyManager()
focal_class.identifier: AesCmacKeyManager
focal_class.parameters: ()
focal_class.signature:  AesCmacKeyManager()
focal_class.class_method_signature: AesCmacKeyManager.getKeyType()
focal_class.full_signature: @Override public String getKeyType()
focal_class.identifier: getKeyType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getKeyType()
focal_class.class_method_signature: AesCmacKeyManager.getVersion()
focal_class.full_signature: @Override public int getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getVersion()
focal_class.class_method_signature: AesCmacKeyManager.keyMaterialType()
focal_class.full_signature: @Override public KeyMaterialType keyMaterialType()
focal_class.identifier: keyMaterialType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: KeyMaterialType
focal_class.signature: KeyMaterialType keyMaterialType()
focal_class.class_method_signature: AesCmacKeyManager.validateKey(AesCmacKey key)
focal_class.full_signature: @Override public void validateKey(AesCmacKey key)
focal_class.identifier: validateKey
focal_class.modifiers: @Override public
focal_class.parameters: (AesCmacKey key)
focal_class.return: void
focal_class.signature: void validateKey(AesCmacKey key)
focal_class.class_method_signature: AesCmacKeyManager.parseKey(ByteString byteString)
focal_class.full_signature: @Override public AesCmacKey parseKey(ByteString byteString)
focal_class.identifier: parseKey
focal_class.modifiers: @Override public
focal_class.parameters: (ByteString byteString)
focal_class.return: AesCmacKey
focal_class.signature: AesCmacKey parseKey(ByteString byteString)
focal_class.class_method_signature: AesCmacKeyManager.validateParams(AesCmacParams params)
focal_class.full_signature: private static void validateParams(AesCmacParams params)
focal_class.identifier: validateParams
focal_class.modifiers: private static
focal_class.parameters: (AesCmacParams params)
focal_class.return: void
focal_class.signature: void validateParams(AesCmacParams params)
focal_class.class_method_signature: AesCmacKeyManager.validateSize(int size)
focal_class.full_signature: private static void validateSize(int size)
focal_class.identifier: validateSize
focal_class.modifiers: private static
focal_class.parameters: (int size)
focal_class.return: void
focal_class.signature: void validateSize(int size)
focal_class.class_method_signature: AesCmacKeyManager.keyFactory()
focal_class.full_signature: @Override public KeyFactory<AesCmacKeyFormat, AesCmacKey> keyFactory()
focal_class.identifier: keyFactory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: KeyFactory<AesCmacKeyFormat, AesCmacKey>
focal_class.signature: KeyFactory<AesCmacKeyFormat, AesCmacKey> keyFactory()
focal_class.class_method_signature: AesCmacKeyManager.register(boolean newKeyAllowed)
focal_class.full_signature: public static void register(boolean newKeyAllowed)
focal_class.identifier: register
focal_class.modifiers: public static
focal_class.parameters: (boolean newKeyAllowed)
focal_class.return: void
focal_class.signature: void register(boolean newKeyAllowed)
focal_class.class_method_signature: AesCmacKeyManager.aes256CmacTemplate()
focal_class.full_signature: public static final KeyTemplate aes256CmacTemplate()
focal_class.identifier: aes256CmacTemplate
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: KeyTemplate
focal_class.signature: KeyTemplate aes256CmacTemplate()
focal_class.class_method_signature: AesCmacKeyManager.rawAes256CmacTemplate()
focal_class.full_signature: public static final KeyTemplate rawAes256CmacTemplate()
focal_class.identifier: rawAes256CmacTemplate
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: KeyTemplate
focal_class.signature: KeyTemplate rawAes256CmacTemplate()
focal_class.superclass: extends KeyTypeManager<AesCmacKey>
focal_method.body: public static final KeyTemplate aes256CmacTemplate() {
      AesCmacKeyFormat format =
          AesCmacKeyFormat.newBuilder()
              .setKeySize(32)
              .setParams(AesCmacParams.newBuilder().setTagSize(16).build())
              .build();
      return KeyTemplate.create(
          new AesCmacKeyManager().getKeyType(),
          format.toByteArray(),
          KeyTemplate.OutputPrefixType.TINK);
    }
focal_method.class_method_signature: AesCmacKeyManager.aes256CmacTemplate()
focal_method.full_signature: public static final KeyTemplate aes256CmacTemplate()
focal_method.identifier: aes256CmacTemplate
focal_method.invocations: build setParams setKeySize newBuilder build setTagSize newBuilder create getKeyType toByteArray
focal_method.modifiers: public static final
focal_method.parameters: ()
focal_method.return: KeyTemplate
focal_method.signature: KeyTemplate aes256CmacTemplate()