OSCCA Extensions For OpenPGP
draft-ribose-openpgp-oscca-00

The information below is for an old version of the document
Document Type Active Internet-Draft (individual)
Authors Ronald Tse  , Wong Kit  , Jack Lloyd  , Daniel Wyatt  , Erick Borsboom
Last updated 2017-11-14
Replaced by draft-ribose-openpgp-sca
Stream (None)
Intended RFC status (None)
Formats pdf htmlized (tools) htmlized 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)
Network Working Group                                             R. Tse
Internet-Draft                                                    Ribose
Updates: 4880, 6637 (if approved)                                W. Wong
Intended status: Standards Track            Hang Seng Management College
Expires: May 17, 2018                                           J. Lloyd
                                                                D. Wyatt
                                                             E. Borsboom
                                                                  Ribose
                                                       November 13, 2017

                      OSCCA Extensions For OpenPGP
                     draft-ribose-openpgp-oscca-00

Abstract

   This document enables OpenPGP (RFC4880) usage in an compliant manner
   with OSCCA (Office of State Commercial Cipher Administration)
   regulations for use within China.

   Specifically, it extends OpenPGP to support the usage of SM2, SM3 and
   SM4 algorithms, and provides the OSCCA-compliant OpenPGP profile
   "OSCCA-SM234".

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 May 17, 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

Tse, et al.               Expires May 17, 2018                  [Page 1]
Internet-Draft        OSCCA Extensions for OpenPGP         November 2017

   (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.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Terms and Definitions . . . . . . . . . . . . . . . . . . . .   4
   3.  Symbols And Abbreviations . . . . . . . . . . . . . . . . . .   5
   4.  SM2 Algorithms  . . . . . . . . . . . . . . . . . . . . . . .   5
     4.1.  SM2 Digital Signature Algorithm . . . . . . . . . . . . .   5
     4.2.  SM2 Key Exchange Protocol . . . . . . . . . . . . . . . .   6
     4.3.  SM2 Public Key Encryption . . . . . . . . . . . . . . . .   7
     4.4.  Recommended SM2 Curve . . . . . . . . . . . . . . . . . .   7
       4.4.1.  Definitions . . . . . . . . . . . . . . . . . . . . .   7
       4.4.2.  Elliptic Curve Formula  . . . . . . . . . . . . . . .   8
       4.4.3.  Curve Parameters  . . . . . . . . . . . . . . . . . .   8
     4.5.  Data Formats  . . . . . . . . . . . . . . . . . . . . . .   8
       4.5.1.  Secret Key Data Format  . . . . . . . . . . . . . . .   8
       4.5.2.  Encrypted Data Format . . . . . . . . . . . . . . . .   9
       4.5.3.  Signature Data Format . . . . . . . . . . . . . . . .   9
   5.  SM3 Hash Algorithm  . . . . . . . . . . . . . . . . . . . . .   9
   6.  SM4 Symmetric Encryption Algorithm  . . . . . . . . . . . . .  10
   7.  Supported Algorithms  . . . . . . . . . . . . . . . . . . . .  10
     7.1.  Public Key Algorithms . . . . . . . . . . . . . . . . . .  11
     7.2.  Symmetric Key Algorithms  . . . . . . . . . . . . . . . .  11
     7.3.  Hash Algorithms . . . . . . . . . . . . . . . . . . . . .  11
   8.  Conversion Primitives . . . . . . . . . . . . . . . . . . . .  12
   9.  SM2 Key Derivation Function . . . . . . . . . . . . . . . . .  12
     9.1.  Prerequisites . . . . . . . . . . . . . . . . . . . . . .  12
     9.2.  Inputs  . . . . . . . . . . . . . . . . . . . . . . . . .  13
     9.3.  Outputs . . . . . . . . . . . . . . . . . . . . . . . . .  13
   10. Encoding of Public and Private Keys . . . . . . . . . . . . .  13
     10.1.  Public-Key Packet Formats  . . . . . . . . . . . . . . .  13
     10.2.  Secret-Key Packet Formats  . . . . . . . . . . . . . . .  14
   11. Message Encoding with Public Keys . . . . . . . . . . . . . .  15
     11.1.  Public-Key Encrypted Session Key Packets (Tag 1) . . . .  15
     11.2.  Signature Packet (Tag 2) . . . . . . . . . . . . . . . .  15
Show full document text