<h3>Available Key Encryption Algorithms</h3>
<p class="help">
    The following table lists all key encryption algorithms available in this environment.
</p>
<table>
    <thead>
    <tr>
        <th>Name</th>
        <th>Alias</th>
        <th>Message</th>
    </tr>
    </thead>
    <tbody>
    {% set encryptionAlgorithms = collector.getData().algorithm.algorithms %}
    {% if encryptionAlgorithms['Key Encryption'] is defined %}
        {% for alias, alg in encryptionAlgorithms['Key Encryption'] %}
            <tr class="{% if alg.name in collector.getData().algorithm.messages|keys %}{{ collector.getData().algorithm.messages[alg.name]['severity'] }}{% else %}no-severity{% endif %}">
                <td>{{ alg.name }}</td>
                <td>{{ alias }}</td>
                <td>
                    {% if alg.name in collector.getData().algorithm.messages|keys %}
                        {{ collector.getData().algorithm.messages[alg.name]['message']|raw }}
                    {% endif %}
                </td>
            </tr>
        {% endfor %}
    {% else %}
        <tr>
            <td colspan="3">
                No algorithm. Please consider the installation of the following packages or create your own algorithm:
                <ul>
                    <li>web-token/jwt-encryption-algorithm-aesgcmkw</li>
                    <li>web-token/jwt-encryption-algorithm-aeskw</li>
                    <li>web-token/jwt-encryption-algorithm-dir</li>
                    <li>web-token/jwt-encryption-algorithm-ecdh-es</li>
                    <li>web-token/jwt-encryption-algorithm-pbes2</li>
                    <li>web-token/jwt-encryption-algorithm-rsa</li>
                </ul>
            </td>
        </tr>
    {% endif %}
    </tbody>
</table>
