# Functions
No description provided by the author
*sm2密文转asn.1编码格式
*sm2密文结构如下:
* x
* y
* hash
* CipherText
*/.
sm2密文asn.1编码格式转C1|C3|C2拼接格式
*/.
No description provided by the author
No description provided by the author
No description provided by the author
sm2解密,解析asn.1编码格式的密文内容
*/.
* sm2密文结构如下:
* x
* y
* hash
* CipherText
*/.
sm2加密,返回asn.1编码格式的密文内容
*/.
No description provided by the author
KeyExchangeA 协商第二部,用户A调用,返回共享密钥k.
**************************Key agreement algorithm**************************// KeyExchangeB 协商第二部,用户B调用, 返回共享密钥k.
No description provided by the author
****************************************************************************//.
*
* 将 Asn1的常见签名结果转换成big.Int输出格式
**/.
*
* 将 big.Int的签名结果转换成Asn1的常见输出格式
**/.
No description provided by the author
No description provided by the author
za, err := ZA(pub, uid)
if err != nil {
return
}
e, err := msgHash(za, msg)
hash=e.getBytes()
*/.
No description provided by the author
ZA = H256(ENTLA || IDA || a || b || xG || yG || xA || yA).