Skip to content

[SM2 encrypt/decrypt] The newest SM2 encrypt output buffer is (C1 || C3 || C2). #7972

Description

@wmfhust

* 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions