19 行
666 B
C
19 行
666 B
C
|
|
/*
|
|||
|
|
* kyber_sdk.h — CKyber 模块公开头文件(伞头文件)
|
|||
|
|
*
|
|||
|
|
* 对外暴露以下内容:
|
|||
|
|
* 1. Kyber512 / 768 / 1024 三种变体的完整 API(来自 api.h)
|
|||
|
|
* 2. randombytes — 密码学安全随机数接口(iOS 侧由 arc4random_buf 实现)
|
|||
|
|
*
|
|||
|
|
* Swift 层通过 `import CKyber` 访问所有 C 函数。
|
|||
|
|
*/
|
|||
|
|
#ifndef KYBER_SDK_H
|
|||
|
|
#define KYBER_SDK_H
|
|||
|
|
|
|||
|
|
#include <stdint.h>
|
|||
|
|
#include "api.h" /* Kyber512 / 768 / 1024 密钥生成 / 封装 / 解封装函数声明 */
|
|||
|
|
|
|||
|
|
/* 暴露随机数接口,供 Swift 层在调用 keypair_derand / enc_derand 前生成 coins */
|
|||
|
|
void randombytes(uint8_t *out, size_t outlen);
|
|||
|
|
|
|||
|
|
#endif /* KYBER_SDK_H */
|