Developer Reference

Contents

Functions based on SM2

Short Description
This section describes functions based on the SM2 encryption standard for elliptic curves. For more information on the Elliptic Curve Integrated Encryption Scheme, see [IEEE P1363A]. The standard operations of
GFpEC
functions are listed below:
  • Compute a shared secret
    Z
    of the private key
    U
    and a recipient public key
    W
    .
  • Derive a shared secret key data
    K
    from the shared secret
    Z
    .
  • Encrypt or decrypt a message using the cipher agreed upon parties and the shared secret key data
    K
    .
  • Compute an authentication tag using the agreed authentication scheme and the secret key data
    K
    .
As an encryption or decryption result, the Elliptic Curve Encryption Scheme (ECES) returns a buffer with the following components:
  • pk
    containing representation of the sender public key;
  • msg
    containing the encrypted or decrypted message;
  • tag
    containing the authentication tag.
The size of
msg
equals to the size of the plain-text message. To get the size of
pk
or
tag
, call the
ippsGFpECESGetBuffersSize_SM2
function.
For more information on the SM2 cryptographic algorithm based on elliptic curves, see [SM2 PKE].

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804