test_class.file: java_src/src/test/java/com/google/crypto/tink/daead/AesSivKeyManagerTest.java
test_class.identifier: AesSivKeyManagerTest
test_case.body: @Test
    public void validateKey_version() throws Exception {
      AesSivKeyManager manager = new AesSivKeyManager();
      try {
        manager.validateKey(AesSivKey.newBuilder(createAesSivKey(64)).setVersion(1).build());
        fail();
      } catch (GeneralSecurityException e) {
        // expected
      }
    }
test_case.class_method_signature: AesSivKeyManagerTest.validateKey_version()
test_case.full_signature: @Test public void validateKey_version()
test_case.identifier: validateKey_version
test_case.invocations: validateKey build setVersion newBuilder createAesSivKey fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void validateKey_version()
focal_class.file: java_src/src/main/java/com/google/crypto/tink/daead/AesSivKeyManager.java
focal_class.identifier: AesSivKeyManager
focal_class.class_method_signature: AesSivKeyManager.AesSivKeyManager()
focal_class.full_signature:   AesSivKeyManager()
focal_class.identifier: AesSivKeyManager
focal_class.parameters: ()
focal_class.signature:  AesSivKeyManager()
focal_class.class_method_signature: AesSivKeyManager.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: AesSivKeyManager.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: AesSivKeyManager.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: AesSivKeyManager.validateKey(AesSivKey key)
focal_class.full_signature: @Override public void validateKey(AesSivKey key)
focal_class.identifier: validateKey
focal_class.modifiers: @Override public
focal_class.parameters: (AesSivKey key)
focal_class.return: void
focal_class.signature: void validateKey(AesSivKey key)
focal_class.class_method_signature: AesSivKeyManager.parseKey(ByteString byteString)
focal_class.full_signature: @Override public AesSivKey parseKey(ByteString byteString)
focal_class.identifier: parseKey
focal_class.modifiers: @Override public
focal_class.parameters: (ByteString byteString)
focal_class.return: AesSivKey
focal_class.signature: AesSivKey parseKey(ByteString byteString)
focal_class.class_method_signature: AesSivKeyManager.keyFactory()
focal_class.full_signature: @Override public KeyFactory<AesSivKeyFormat, AesSivKey> keyFactory()
focal_class.identifier: keyFactory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: KeyFactory<AesSivKeyFormat, AesSivKey>
focal_class.signature: KeyFactory<AesSivKeyFormat, AesSivKey> keyFactory()
focal_class.class_method_signature: AesSivKeyManager.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: AesSivKeyManager.aes256SivTemplate()
focal_class.full_signature: public static final KeyTemplate aes256SivTemplate()
focal_class.identifier: aes256SivTemplate
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: KeyTemplate
focal_class.signature: KeyTemplate aes256SivTemplate()
focal_class.class_method_signature: AesSivKeyManager.rawAes256SivTemplate()
focal_class.full_signature: public static final KeyTemplate rawAes256SivTemplate()
focal_class.identifier: rawAes256SivTemplate
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: KeyTemplate
focal_class.signature: KeyTemplate rawAes256SivTemplate()
focal_class.class_method_signature: AesSivKeyManager.createKeyTemplate(
        int keySize, KeyTemplate.OutputPrefixType prefixType)
focal_class.full_signature: private static KeyTemplate createKeyTemplate(
        int keySize, KeyTemplate.OutputPrefixType prefixType)
focal_class.identifier: createKeyTemplate
focal_class.modifiers: private static
focal_class.parameters: (
        int keySize, KeyTemplate.OutputPrefixType prefixType)
focal_class.return: KeyTemplate
focal_class.signature: KeyTemplate createKeyTemplate(
        int keySize, KeyTemplate.OutputPrefixType prefixType)
focal_class.superclass: extends KeyTypeManager<AesSivKey>
focal_method.body: @Override
    public void validateKey(AesSivKey key) throws GeneralSecurityException {
      Validators.validateVersion(key.getVersion(), getVersion());
      if (key.getKeyValue().size() != 64) {
        throw new InvalidKeyException(
            "invalid key size: " + key.getKeyValue().size() + ". Valid keys must have 64 bytes.");
      }
    }
focal_method.class_method_signature: AesSivKeyManager.validateKey(AesSivKey key)
focal_method.full_signature: @Override public void validateKey(AesSivKey key)
focal_method.identifier: validateKey
focal_method.invocations: validateVersion getVersion getVersion size getKeyValue size getKeyValue
focal_method.modifiers: @Override public
focal_method.parameters: (AesSivKey key)
focal_method.return: void
focal_method.signature: void validateKey(AesSivKey key)