public static final KeyTemplate chaCha20Poly1305Template() {
    return exceptionIsBug(
        () ->
            KeyTemplate.createFrom(
                ChaCha20Poly1305Parameters.create(ChaCha20Poly1305Parameters.Variant.TINK)));
  }
@return a {@link KeyTemplate} that generates new instances of ChaCha20Poly1305 keys.
java_src/src/main/java/com/google/crypto/tink/aead/ChaCha20Poly1305KeyManager.java