Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(760)

Unified Diff: nss/mozilla/security/nss/lib/cryptohi/keythi.h

Issue 3135002: Update to NSS 3.12.7 and NSPR 4.8.6.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/mozilla/security/nss/lib/cryptohi/keythi.h
===================================================================
--- nss/mozilla/security/nss/lib/cryptohi/keythi.h (revision 55475)
+++ nss/mozilla/security/nss/lib/cryptohi/keythi.h (working copy)
@@ -42,6 +42,20 @@
#include "secmodt.h"
#include "prclist.h"
+/*
+** RFC 4055 specifies three different RSA key types.
+**
+** rsaKey maps to keys with SEC_OID_PKCS1_RSA_ENCRYPTION and can be used for
+** both encryption and signatures with old (PKCS #1 v1.5) and new (PKCS #1
+** v2.1) padding schemes.
+**
+** rsaPssKey maps to keys with SEC_OID_PKCS1_RSA_PSS_SIGNATURE and may only
+** be used for signatures with PSS padding (PKCS #1 v2.1).
+**
+** rsaOaepKey maps to keys with SEC_OID_PKCS1_RSA_OAEP_ENCRYPTION and may only
+** be used for encryption with OAEP padding (PKCS #1 v2.1).
+*/
+
typedef enum {
nullKey = 0,
rsaKey = 1,
@@ -49,7 +63,9 @@
fortezzaKey = 3,
dhKey = 4,
keaKey = 5,
- ecKey = 6
+ ecKey = 6,
+ rsaPssKey = 7,
+ rsaOaepKey = 8
} KeyType;
/*
@@ -158,6 +174,8 @@
SECKEYPQGParams keaParams;
};
typedef struct SECKEYFortezzaPublicKeyStr SECKEYFortezzaPublicKey;
+#define KEAprivilege KEApriviledge /* corrected spelling */
+#define DSSprivilege DSSpriviledge /* corrected spelling */
struct SECKEYDiffPQGParamsStr {
SECKEYPQGParams DiffKEAParams;

Powered by Google App Engine
This is Rietveld 408576698