# 抗量子密码算法Demo **Repository Path**: JackieCode/circl ## Basic Information - **Project Name**: 抗量子密码算法Demo - **Description**: 简单封装github.com/cloudflare/circl包,实现抗量子密码的演示Demo - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-10 - **Last Updated**: 2025-07-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 量子算法 Base URLs: # Authentication # kyber ## POST 秘钥生成 POST /kyber/GenKeyPair > Body 请求参数 ```json { "type": "512" } ``` ### 请求参数 |名称|位置|类型|必选|说明| |---|---|---|---|---| |body|body|object| 否 |none| > 返回示例 > 200 Response ```json {} ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| ### 返回数据结构 ## POST 秘钥封装 POST /kyber/Encapsulate > Body 请求参数 ```json { "type": "", "pk": "" } ``` ### 请求参数 |名称|位置|类型|必选|说明| |---|---|---|---|---| |body|body|object| 否 |none| > 返回示例 > 200 Response ```json {} ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| ### 返回数据结构 ## POST 秘钥解封 POST /kyber/Decapsulate > Body 请求参数 ```json { "type": "", "sk": "", "cipher": "" } ``` ### 请求参数 |名称|位置|类型|必选|说明| |---|---|---|---|---| |body|body|object| 否 |none| > 返回示例 > 200 Response ```json {} ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| ### 返回数据结构 # dilithium ## POST 生成秘钥 POST /dilithium/GenKeyPair > Body 请求参数 ```json { "type": "dilithium2" } ``` ### 请求参数 |名称|位置|类型|必选|说明| |---|---|---|---|---| |body|body|object| 否 |none| > 返回示例 > 200 Response ```json {} ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| ### 返回数据结构 ## POST 私钥签名 POST /dilithium/sign > Body 请求参数 ```json { "type": "string", "private_key": "string", "message": "string", "opts": "string" } ``` ### 请求参数 |名称|位置|类型|必选|说明| |---|---|---|---|---| |body|body|object| 否 |none| |» type|body|string| 是 |none| |» private_key|body|string| 是 |none| |» message|body|string| 是 |none| |» opts|body|string| 是 |none| > 返回示例 > 200 Response ```json {} ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| ### 返回数据结构 ## POST 公钥验签 POST /dilithium/verify > Body 请求参数 ```json { "type": "string", "public_key": "string", "message": "string", "signature": "string", "opts": "string" } ``` ### 请求参数 |名称|位置|类型|必选|说明| |---|---|---|---|---| |body|body|object| 否 |none| |» type|body|string| 是 |none| |» public_key|body|string| 是 |none| |» message|body|string| 是 |none| |» signature|body|string| 是 |none| |» opts|body|string| 是 |none| > 返回示例 > 200 Response ```json {} ``` ### 返回结果 |状态码|状态码含义|说明|数据模型| |---|---|---|---| |200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| ### 返回数据结构 # 数据模型