|
* Output C = C1 || C2 || C3 |
Referrence url: https://openstd.samr.gov.cn/bzgk/std/newGbInfo?hcno=370AF152CB5CA4A377EB4D1B21DECAE0&refer=outter.
The newest SM2 public encrypt standard is: GB/T32918.4—2016, and the sm2 encrypt output buffer is (C1 || C3 || C2). I think the code and xtest golden data need to be updated according to the new standard.
optee_os/core/lib/libtomcrypt/sm2-pke.c
Line 465 in b9436f3
Referrence url: https://openstd.samr.gov.cn/bzgk/std/newGbInfo?hcno=370AF152CB5CA4A377EB4D1B21DECAE0&refer=outter.
The newest SM2 public encrypt standard is: GB/T32918.4—2016, and the sm2 encrypt output buffer is (C1 || C3 || C2). I think the code and xtest golden data need to be updated according to the new standard.