ISSUE-14: Remove PKCS#1 support for raw keys, clarify as PKCS#8 (RFC 5208)
authorRyan Sleevi <sleevi@google.com>
Mon, 03 Dec 2012 17:16:54 -0800
changeset 8 9640be9bfd1c
parent 7 6e40e2c600d6
child 9 4c6e6e5e4454
ISSUE-14: Remove PKCS#1 support for raw keys, clarify as PKCS#8 (RFC 5208)
via PrivateKeyInfo and X.509 (RFC 5280) via SubjectPublicKeyInfo.
spec/Overview-WebCryptoAPI.xml
spec/Overview.html
--- a/spec/Overview-WebCryptoAPI.xml	Mon Dec 03 17:16:45 2012 -0800
+++ b/spec/Overview-WebCryptoAPI.xml	Mon Dec 03 17:16:54 2012 -0800
@@ -1324,14 +1324,10 @@
 enum <dfn id="dfn-KeyFormat">KeyFormat</dfn> {
   <span class="comment">// An unformatted sequence of bytes. Intended for secret keys.</span>
   "raw",
-  <span class="comment">// The BER encoding of the RSAPublicKey structure from RFC 3447.</span>
-  <span class="comment">// Only usable with RSA keys.</span>
-  "pkcs1-public",
-  <span class="comment">// The BER encoding of the RSAPrivateKey structure from RFC 3447.</span>
-  <span class="comment">// Only usable with RSA keys.</span>
-  "pkcs1-private",
-  <span class="comment">// The BER encoding of the PrivateKeyInfo structure from RFC 5208.</span>
+  <span class="comment">// The DER encoding of the PrivateKeyInfo structure from <a href="#RFC5208">RFC 5208</a>.</span>
   "pkcs8",
+  <span class="comment">// The DER encoding of the SubjectPublicKeyInfo structure from <a href="#RFC5280">RFC 5280</a>.</span>
+  "spki",
   <span class="comment">// The key is represented as JSON according to the JSON Web Key format.</span>
   "jwk",
 };
@@ -3235,6 +3231,18 @@
                (PKCS) #1: RSA Cryptography Specifications Version 2.1</a></cite>, J. Jonsson,
                B. Kaliski. IETF.
              </dd>
+             <dt id="RFC5208">RFC5208</dt>
+             <dd>
+              <cite><a href="http://www.ietf.org/rfc/rfc5208">Public-Key Cryptography Standards
+              (PKCS) #8: Private-Key Information Syntax Specification Version 1.2</a></cite>,
+              B. Kaliski. IETF.
+             </dd>
+             <dt id="RFC5280">RFC5280</dt>
+             <dd>
+              <cite><a href="http://www.ietf.org/rfc/rfc5280">Internet X.509 Public Key
+              Infrastructure Certificate and Certificate Revocation List (CRL) Profile</a></cite>,
+              D. Cooper, S. Santesson, S. Farrell, S. Boeyen, R. Housley, W. Polk. IETF.
+             </dd>
              <dt id="PKCS3">PKCS3</dt>
              <dd>
                <cite><a href="http://www.rsa.com/rsalabs/node.asp?id=2126">PKCS #3: Diffie-Hellman
--- a/spec/Overview.html	Mon Dec 03 17:16:45 2012 -0800
+++ b/spec/Overview.html	Mon Dec 03 17:16:54 2012 -0800
@@ -1320,14 +1320,10 @@
 enum <dfn id="dfn-KeyFormat">KeyFormat</dfn> {
   <span class="comment">// An unformatted sequence of bytes. Intended for secret keys.</span>
   "raw",
-  <span class="comment">// The BER encoding of the RSAPublicKey structure from RFC 3447.</span>
-  <span class="comment">// Only usable with RSA keys.</span>
-  "pkcs1-public",
-  <span class="comment">// The BER encoding of the RSAPrivateKey structure from RFC 3447.</span>
-  <span class="comment">// Only usable with RSA keys.</span>
-  "pkcs1-private",
-  <span class="comment">// The BER encoding of the PrivateKeyInfo structure from RFC 5208.</span>
+  <span class="comment">// The DER encoding of the PrivateKeyInfo structure from <a href="#RFC5208">RFC 5208</a>.</span>
   "pkcs8",
+  <span class="comment">// The DER encoding of the SubjectPublicKeyInfo structure from <a href="#RFC5280">RFC 5280</a>.</span>
+  "spki",
   <span class="comment">// The key is represented as JSON according to the JSON Web Key format.</span>
   "jwk",
 };
@@ -3231,6 +3227,18 @@
                (PKCS) #1: RSA Cryptography Specifications Version 2.1</a></cite>, J. Jonsson,
                B. Kaliski. IETF.
              </dd>
+             <dt id="RFC5208">RFC5208</dt>
+             <dd>
+              <cite><a href="http://www.ietf.org/rfc/rfc5208">Public-Key Cryptography Standards
+              (PKCS) #8: Private-Key Information Syntax Specification Version 1.2</a></cite>,
+              B. Kaliski. IETF.
+             </dd>
+             <dt id="RFC5280">RFC5280</dt>
+             <dd>
+              <cite><a href="http://www.ietf.org/rfc/rfc5280">Internet X.509 Public Key
+              Infrastructure Certificate and Certificate Revocation List (CRL) Profile</a></cite>,
+              D. Cooper, S. Santesson, S. Farrell, S. Boeyen, R. Housley, W. Polk. IETF.
+             </dd>
              <dt id="PKCS3">PKCS3</dt>
              <dd>
                <cite><a href="http://www.rsa.com/rsalabs/node.asp?id=2126">PKCS #3: Diffie-Hellman