# Algorithms

The catalogue: every algorithm with its maturity, module, standards and what this build can run. Aegis Core API, `AlgorithmService`: 2 operations, generated from the OpenAPI document of Aegis Core 0.13.0.

## List algorithms

`GET /v1/algorithms`

The whole catalogue with what this build can do.

- Role: `auditor` or higher
- gRPC: `/aegis.v1.AlgorithmService/ListAlgorithms`

Response `200` (`application/json`): [ListAlgorithmsResponse](#schema-listalgorithmsresponse)

Errors: `400` · `401` · `403` · `404` · `409` · `413` · `500` · `503` ([what each means](https://docs.qblackbit.com/api/core/index.md#errors)).

## Get algorithm

`GET /v1/algorithms/{id}`

One catalogue entry.

- Role: `auditor` or higher
- gRPC: `/aegis.v1.AlgorithmService/GetAlgorithm`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` | path | string, required |  |

Response `200` (`application/json`): [Algorithm](#schema-algorithm)

Errors: `400` · `401` · `403` · `404` · `409` · `413` · `500` · `503` ([what each means](https://docs.qblackbit.com/api/core/index.md#errors)).

## Schemas

### Algorithm

A catalogue entry and what this build can do with it.

| Field | Type | Description |
| --- | --- | --- |
| `advisory` | [AlgorithmAdvisoryStatus](#schema-algorithmadvisorystatus), nullable | The signed advisory in force for it, if any (SVC-005). |
| `apply` | string | New protection: `ready`, `not built` or `refused: <gate and why>`. |
| `category` | integer (int64), nullable | The NIST security category, if it has one. |
| `caution` | string, nullable | The caution of a retired or broken algorithm. |
| `checked` | string | When that standing was checked. |
| `ephemeral_only` | boolean | Whether its keys may only be ephemeral. |
| `family` | string | The family. |
| `id` | string | The identifier. |
| `kind` | string | The kind: kem, signature, aead and the rest. |
| `maturity` | string | The maturity. |
| `module` | string | The licensed module. |
| `name` | string | The name. |
| `process` | string | Handling what exists: the same answers. |
| `production` | boolean | Whether a production deployment may use it. |
| `providers` | array of string | The providers that implement it. |
| `quantum_safe` | boolean | Whether it resists a quantum attacker. |
| `reach` | string | Where it may run. |
| `revision` | string | The specification revision the identifier is bound to. |
| `standards` | array of string | The standards that define it. |
| `status` | string | Its standing in the standards. |
| `variable_time` | boolean | Whether the set's implementation runs in variable time; such sets are refused unless the daemon was started with the flag that allows them (a laboratory only). |

### ListAlgorithmsResponse

The catalogue.

| Field | Type | Description |
| --- | --- | --- |
| `algorithms` | array of [Algorithm](#schema-algorithm) | Every entry. |

### AlgorithmAdvisoryStatus

A signed advisory in force for an algorithm: from `effective` on, it has `maturity` instead of its catalogue maturity.

| Field | Type | Description |
| --- | --- | --- |
| `effective` | string | The first day it applies (ISO 8601). |
| `maturity` | string | The maturity from the effective day on. |
| `reason` | string | Why. |
| `sequence` | integer (int64) | Its sequence number. |
| `source` | string | The published finding. |
