# tmp2-skf **Repository Path**: mirrors_linuxdeepin/tmp2-skf ## Basic Information - **Project Name**: tmp2-skf - **Description**: No description available - **Primary Language**: Unknown - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-22 - **Last Updated**: 2026-03-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # tpm2-skf skf是智能密码钥匙密码应用接口。本项目基于tpm2芯片实现一个skf接口库。 * [设计文档](docs/TPM2-SKF概要设计_0.1.1.docx) - TPM2-SKF概要设计_0.1.1.docx * [目前实现的接口](include/skfapi.h) - skfapi.h # Example 测试用例 ## 1. 调用skf接口创建app,container,生成rsa key pair,导入证书 ``` cd test ./test init ``` ## 2. 使用skf ``` ./test ``` # Todo ``` 1) 由于机器tpm2芯片不支持sm4算法,对称加密接口实际上使用 的是aes128算法模拟sm4. 2) 由于机器tpm2芯片不支持sm2算法,目前实现了rsa相关接口,ecc接口暂未实现。 3) 测试目前仅使用了自己写的test代码。 4) 目前仅支持一个Sessionkey。 ``` # Reference 参考项目 * [tpm2-pkcs11](https://github.com/tpm2-software/tpm2-pkcs11) - tpm2-software tpm2-pkcs11