jntass / TASSL

此仓库已停止维护,请移步https://github.com/jntass/TASSL-1.1.1

Home Page:http://www.tass.com.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ecdhe-sm2-sm4-sm3套件密钥协商时ZAZB的顺序为什么会不一样;标准是唯一的,那下面必然有一个是不符合标准的,请问为什么有两种实现呢

lf-test1 opened this issue · comments

#ifdef STD_ZAZB
if (1 != EVP_PKEY_CTX_set_responsor(pctx, s->server) || //国密标准定义ZAZB
#else
if (1 != EVP_PKEY_CTX_set_responsor(pctx, !s->server) || //国密局默认顺序ZBZA
#endif