> For the complete documentation index, see [llms.txt](https://docs.editran.onesait.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.editran.onesait.com/documentacion-editran/copy-of-privado-editran-v5.3-cics/gestor-de-claves/anexo/verificacion-de-claves-intercambiadas.md).

# Verificación de claves intercambiadas

Cuando 2 entidades han utilizado el intercambio de claves, pueden validar de la siguiente forma, en caso de que falle la criptografía:

* En editran, deben tener puestos los valores: cifrado = ‘s’, versión = 3.0 o 4.0, algoritmos adecuados e interfaz de claves (ZTBGBIGC para batch y ZTBPOIGC para on-line).
* Si un extremo tiene puesto en SUBSISTEMA LOCAL=a y SUBSISTEMA REMOT=b de una sesión,en la entidad remota, deben haber puesto el valor inverso, es decir, SUBSISTEMA LOCAL=b y SUBSISTEMA REMOT=a (la entidad remota puede utilizar los campos clave local y clave remota, pero no tiene mucho sentido actuar así).
* Una vez que se está de acuerdo en los valores anteriores:
  * Consulta de la versión y clave enviada en un sentido.
    * El extremo local, consulta el subsistema que tiene con la entidad remota, por ejemplo, el subsistema 0 (opción 6.3 para RSA y 6.4 para DES).
    * El extremo remoto consulta el MISMO subsistema (opción 6.4 para RSA).
    * En ambos extremos DEBE DE APARECER la misma VERSION ACTIVA. Si no es así, activar manualmente alguna, poniéndose de acuerdo en ambos extremos para que en ambos quede activa la misma versión.
    * Seleccionar el label de versión (cálculo de módulo-exponente para RSA y cifrado para DES). Ambos extremos deben “visualizar” lo mismo.
  * Consulta de la versión y clave enviada en el otro sentido.
    * El extremo remoto, consulta el subsistema que tiene con nuestra entidad, por ejemplo, el subsistema 0 (opción 6.3)
    * El extremo local consulta el MISMO subsistema (opción 6.4).
    * En ambos extremos DEBE DE APARECER la misma VERSION ACTIVA. Si no es así, activar manualmente alguna, poniéndose de acuerdo en ambos extremos para que en ambos quede activa la misma versión.
    * Seleccionar el label de versión (cálculo de módulo-exponente para RSA y cifrado para DES). Ambos extremos deben “visualizar” lo mismo.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.editran.onesait.com/documentacion-editran/copy-of-privado-editran-v5.3-cics/gestor-de-claves/anexo/verificacion-de-claves-intercambiadas.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
