The SM4 Blockcipher Algorithm And Its Modes Of Operations
draft-ribose-cfrg-sm4-08

Document Type Active Internet-Draft (individual)
Last updated 2017-12-14
Replaces draft-crypto-sm4
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Internet Research Task Force                                      R. Tse
Internet-Draft                                                    Ribose
Intended status: Informational                                   W. Wong
Expires: June 18, 2018                      Hang Seng Management College
                                                       December 15, 2017

       The SM4 Blockcipher Algorithm And Its Modes Of Operations
                        draft-ribose-cfrg-sm4-08

Abstract

   This document describes the SM4 symmetric blockcipher algorithm
   published as GB/T 32907-2016 by the State Cryptography Administration
   of China (SCA).

   This document is a product of the Crypto Forum Research Group (CFRG).

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on June 18, 2018.

Copyright Notice

   Copyright (c) 2017 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (https://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.

Tse & Wong                Expires June 18, 2018                 [Page 1]
Internet-Draft          SM4 Blockcipher Algorithm          December 2017

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   4
     1.1.  Purpose . . . . . . . . . . . . . . . . . . . . . . . . .   4
     1.2.  History . . . . . . . . . . . . . . . . . . . . . . . . .   4
   2.  Terms and Definitions . . . . . . . . . . . . . . . . . . . .   5
   3.  Symbols And Abbreviations . . . . . . . . . . . . . . . . . .   6
   4.  Compute Structure . . . . . . . . . . . . . . . . . . . . . .   6
   5.  Key And Key Parameters  . . . . . . . . . . . . . . . . . . .   7
   6.  Functions . . . . . . . . . . . . . . . . . . . . . . . . . .   7
     6.1.  Round Function F  . . . . . . . . . . . . . . . . . . . .   7
     6.2.  Permutations T and T' . . . . . . . . . . . . . . . . . .   7
       6.2.1.  Nonlinear Transformation tau  . . . . . . . . . . . .   8
       6.2.2.  Linear Transformations L and L' . . . . . . . . . . .   8
       6.2.3.  S-box S . . . . . . . . . . . . . . . . . . . . . . .   8
   7.  Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . .   9
     7.1.  Encryption  . . . . . . . . . . . . . . . . . . . . . . .   9
     7.2.  Decryption  . . . . . . . . . . . . . . . . . . . . . . .  12
     7.3.  Key Schedule  . . . . . . . . . . . . . . . . . . . . . .  12
       7.3.1.  Family Key FK . . . . . . . . . . . . . . . . . . . .  13
       7.3.2.  Constant Key CK . . . . . . . . . . . . . . . . . . .  13
   8.  Modes of Operation  . . . . . . . . . . . . . . . . . . . . .  14
     8.1.  Variables And Primitives  . . . . . . . . . . . . . . . .  14
     8.2.  Initialization Vectors  . . . . . . . . . . . . . . . . .  15
     8.3.  SM4-ECB . . . . . . . . . . . . . . . . . . . . . . . . .  15
       8.3.1.  SM4-ECB Encryption  . . . . . . . . . . . . . . . . .  15
       8.3.2.  SM4-ECB Decryption  . . . . . . . . . . . . . . . . .  16
     8.4.  SM4-CBC . . . . . . . . . . . . . . . . . . . . . . . . .  16
       8.4.1.  SM4-CBC Encryption  . . . . . . . . . . . . . . . . .  17
       8.4.2.  SM4-CBC Decryption  . . . . . . . . . . . . . . . . .  17
     8.5.  SM4-CFB . . . . . . . . . . . . . . . . . . . . . . . . .  18
       8.5.1.  SM4-CFB Variants  . . . . . . . . . . . . . . . . . .  18
       8.5.2.  SM4-CFB Encryption  . . . . . . . . . . . . . . . . .  19
       8.5.3.  SM4-CFB Decryption  . . . . . . . . . . . . . . . . .  19
     8.6.  SM4-OFB . . . . . . . . . . . . . . . . . . . . . . . . .  20
       8.6.1.  SM4-OFB Encryption  . . . . . . . . . . . . . . . . .  20
       8.6.2.  SM4-OFB Decryption  . . . . . . . . . . . . . . . . .  21
     8.7.  SM4-CTR . . . . . . . . . . . . . . . . . . . . . . . . .  22
       8.7.1.  SM4-CTR Encryption  . . . . . . . . . . . . . . . . .  22
       8.7.2.  SM4-CTR Decryption  . . . . . . . . . . . . . . . . .  23
   9.  Object Identifier . . . . . . . . . . . . . . . . . . . . . .  24
     9.1.  GM/T OID  . . . . . . . . . . . . . . . . . . . . . . . .  24
Show full document text