test_class.declarator: manager = new Ed25519PrivateKeyManager()
test_class.modifier: private final
test_class.original_string: private final Ed25519PrivateKeyManager manager = new Ed25519PrivateKeyManager();
test_class.type: Ed25519PrivateKeyManager
test_class.var_name: manager
test_class.declarator: factory =
        manager.keyFactory()
test_class.modifier: private final
test_class.original_string: private final KeyTypeManager.KeyFactory<Ed25519KeyFormat, Ed25519PrivateKey> factory =
        manager.keyFactory();
test_class.type: KeyTypeManager.KeyFactory<Ed25519KeyFormat, Ed25519PrivateKey>
test_class.var_name: factory
test_class.file: java_src/src/test/java/com/google/crypto/tink/signature/Ed25519PrivateKeyManagerTest.java
test_class.identifier: Ed25519PrivateKeyManagerTest
test_case.body: @Test
    public void validateKey_wrongLength64_throws() throws Exception {
      Ed25519PrivateKey validKey = factory.createKey(Ed25519KeyFormat.getDefaultInstance());
      Ed25519PrivateKey invalidKey =
          Ed25519PrivateKey.newBuilder(validKey)
              .setKeyValue(ByteString.copyFrom(Random.randBytes(64)))
              .build();
      try {
        manager.validateKey(invalidKey);
        fail();
      } catch (GeneralSecurityException e) {
        // expected
      }
    }
test_case.class_method_signature: Ed25519PrivateKeyManagerTest.validateKey_wrongLength64_throws()
test_case.full_signature: @Test public void validateKey_wrongLength64_throws()
test_case.identifier: validateKey_wrongLength64_throws
test_case.invocations: createKey getDefaultInstance build setKeyValue newBuilder copyFrom randBytes validateKey fail
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void validateKey_wrongLength64_throws()
focal_class.file: java_src/src/main/java/com/google/crypto/tink/signature/Ed25519PrivateKeyManager.java
focal_class.identifier: Ed25519PrivateKeyManager
focal_class.class_method_signature: Ed25519PrivateKeyManager.Ed25519PrivateKeyManager()
focal_class.full_signature:   Ed25519PrivateKeyManager()
focal_class.identifier: Ed25519PrivateKeyManager
focal_class.parameters: ()
focal_class.signature:  Ed25519PrivateKeyManager()
focal_class.class_method_signature: Ed25519PrivateKeyManager.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: Ed25519PrivateKeyManager.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: Ed25519PrivateKeyManager.getPublicKey(Ed25519PrivateKey key)
focal_class.full_signature: @Override public Ed25519PublicKey getPublicKey(Ed25519PrivateKey key)
focal_class.identifier: getPublicKey
focal_class.modifiers: @Override public
focal_class.parameters: (Ed25519PrivateKey key)
focal_class.return: Ed25519PublicKey
focal_class.signature: Ed25519PublicKey getPublicKey(Ed25519PrivateKey key)
focal_class.class_method_signature: Ed25519PrivateKeyManager.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: Ed25519PrivateKeyManager.parseKey(ByteString byteString)
focal_class.full_signature: @Override public Ed25519PrivateKey parseKey(ByteString byteString)
focal_class.identifier: parseKey
focal_class.modifiers: @Override public
focal_class.parameters: (ByteString byteString)
focal_class.return: Ed25519PrivateKey
focal_class.signature: Ed25519PrivateKey parseKey(ByteString byteString)
focal_class.class_method_signature: Ed25519PrivateKeyManager.validateKey(Ed25519PrivateKey keyProto)
focal_class.full_signature: @Override public void validateKey(Ed25519PrivateKey keyProto)
focal_class.identifier: validateKey
focal_class.modifiers: @Override public
focal_class.parameters: (Ed25519PrivateKey keyProto)
focal_class.return: void
focal_class.signature: void validateKey(Ed25519PrivateKey keyProto)
focal_class.class_method_signature: Ed25519PrivateKeyManager.keyFactory()
focal_class.full_signature: @Override public KeyFactory<Ed25519KeyFormat, Ed25519PrivateKey> keyFactory()
focal_class.identifier: keyFactory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: KeyFactory<Ed25519KeyFormat, Ed25519PrivateKey>
focal_class.signature: KeyFactory<Ed25519KeyFormat, Ed25519PrivateKey> keyFactory()
focal_class.class_method_signature: Ed25519PrivateKeyManager.registerPair(boolean newKeyAllowed)
focal_class.full_signature: public static void registerPair(boolean newKeyAllowed)
focal_class.identifier: registerPair
focal_class.modifiers: public static
focal_class.parameters: (boolean newKeyAllowed)
focal_class.return: void
focal_class.signature: void registerPair(boolean newKeyAllowed)
focal_class.class_method_signature: Ed25519PrivateKeyManager.ed25519Template()
focal_class.full_signature: public static final KeyTemplate ed25519Template()
focal_class.identifier: ed25519Template
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: KeyTemplate
focal_class.signature: KeyTemplate ed25519Template()
focal_class.class_method_signature: Ed25519PrivateKeyManager.rawEd25519Template()
focal_class.full_signature: public static final KeyTemplate rawEd25519Template()
focal_class.identifier: rawEd25519Template
focal_class.modifiers: public static final
focal_class.parameters: ()
focal_class.return: KeyTemplate
focal_class.signature: KeyTemplate rawEd25519Template()
focal_class.superclass: extends PrivateKeyTypeManager<Ed25519PrivateKey, Ed25519PublicKey>
focal_method.body: @Override
    public void validateKey(Ed25519PrivateKey keyProto) throws GeneralSecurityException {
      Validators.validateVersion(keyProto.getVersion(), getVersion());
      new Ed25519PublicKeyManager().validateKey(keyProto.getPublicKey());
      if (keyProto.getKeyValue().size() != Ed25519Sign.SECRET_KEY_LEN) {
        throw new GeneralSecurityException("invalid Ed25519 private key: incorrect key length");
      }
    }
focal_method.class_method_signature: Ed25519PrivateKeyManager.validateKey(Ed25519PrivateKey keyProto)
focal_method.full_signature: @Override public void validateKey(Ed25519PrivateKey keyProto)
focal_method.identifier: validateKey
focal_method.invocations: validateVersion getVersion getVersion validateKey getPublicKey size getKeyValue
focal_method.modifiers: @Override public
focal_method.parameters: (Ed25519PrivateKey keyProto)
focal_method.return: void
focal_method.signature: void validateKey(Ed25519PrivateKey keyProto)