(za, msg []byte)
| 424 | } |
| 425 | |
| 426 | func msgHash(za, msg []byte) (*big.Int, error) { |
| 427 | e := sm3.New() |
| 428 | e.Write(za) |
| 429 | e.Write(msg) |
| 430 | return new(big.Int).SetBytes(e.Sum(nil)[:32]), nil |
| 431 | } |
| 432 | |
| 433 | // ZA = H256(ENTLA || IDA || a || b || xG || yG || xA || yA) |
| 434 | func ZA(pub *PublicKey, uid []byte) ([]byte, error) { |