特性#

特性可以直接从描述符 PQC 访问。

描述特性#

描述特性取决于 算法安全类别 运算符。

static constexpr size_t PQC::public_key_size#

给定算法的公钥大小(字节)。 适用于 algorithm::ML_KEMalgorithm::ML_DSA

static constexpr size_t PQC::secret_key_size#

给定算法的私钥大小(字节)。 适用于 algorithm::ML_KEMalgorithm::ML_DSA

static constexpr size_t PQC::ciphertext_size#

密文的大小(字节)。 仅适用于 algorithm::ML_KEM

static constexpr size_t PQC::shared_secret_size#

共享密钥的大小(字节)。 仅适用于 algorithm::ML_KEM

static constexpr size_t PQC::signature_size#

签名的大小(字节)。 仅适用于 algorithm::ML_DSA

执行特性#

这些取决于执行模式和特定函数。

static constexpr size_t PQC::entropy_size#

此函数所需的熵大小(字节)。

static constexpr size_t PQC::workspace_size#

此函数所需的全局内存工作区大小(字节)。

static constexpr size_t PQC::shared_memory_size#

此函数所需的共享内存工作区大小(字节)。

访问器#

static constexpr dim3 PQC::BlockDim#

块大小,由 BlockDim 运算符指定,PQC 描述符在内核启动期间期望的块大小。