From 3c0e1c3475fa0f35a0749dca2f05236567577bd1 Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Mon, 25 Apr 2016 20:02:31 +0200 Subject: [PATCH] =?UTF-8?q?Updated=20SM2=E6=8E=A8=E8=8D=90=E6=A4=AD?= =?UTF-8?q?=E5=9C=86=E6=9B=B2=E7=BA=BF=E5=9F=9F=E5=8F=82=E6=95=B0=20(markd?= =?UTF-8?q?own)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SM2推荐椭圆曲线域参数.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/SM2推荐椭圆曲线域参数.md b/SM2推荐椭圆曲线域参数.md index dd86d8d..b4cc529 100644 --- a/SM2推荐椭圆曲线域参数.md +++ b/SM2推荐椭圆曲线域参数.md @@ -41,3 +41,16 @@ $ gmssl ecparam -genkey -name sm2p256v1 -out sm2key.pem ``` bash $ gmssl ecparam -name sm2p256v1 -param_enc explicit -out sm2p256v1.pem ``` + +## SM2测试椭圆曲线域参数 + +SM2标准文本中提供了四个测试用椭圆曲线域参数: + +* 192比特素数域椭圆曲线域参数(sm2p192test) +* 256比特素数域椭圆曲线域参数(sm2p256test) +* 193比特二进制域椭圆曲线域参数 (sm2b193test) +* 257比特二进制域椭圆曲线域参数 (sm2b257test) + +`crypto/sm2/sm2test.c`中提供了这四个参数的定义及生成`EC_GROUP`对象的代码,应用如果希望使用上述四个参数,可以直接从`sm2test.c`测试文件中复制相应代码。 + +