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

Unified Diff: crypto/third_party/nss/chromium-sha256.h

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « crypto/third_party/nss/chromium-prtypes.h ('k') | crypto/third_party/nss/pk11akey.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/third_party/nss/chromium-sha256.h
diff --git a/net/third_party/nss/ssl/bodge/nssrenam.h b/crypto/third_party/nss/chromium-sha256.h
similarity index 78%
copy from net/third_party/nss/ssl/bodge/nssrenam.h
copy to crypto/third_party/nss/chromium-sha256.h
index 156646cdd2d7b8fe3a79edf38b4c18aced98a623..52815ca7f10d0fb30985f2b5d339d241bc538c9e 100644
--- a/net/third_party/nss/ssl/bodge/nssrenam.h
+++ b/crypto/third_party/nss/chromium-sha256.h
@@ -15,7 +15,7 @@
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
- * Portions created by the Initial Developer are Copyright (C) 2001
+ * Portions created by the Initial Developer are Copyright (C) 2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
@@ -34,14 +34,18 @@
*
* ***** END LICENSE BLOCK ***** */
-#ifndef __nssrenam_h_
-#define __nssrenam_h_
+#ifndef CRYPTO_THIRD_PARTY_NSS_CHROMIUM_SHA_256_H_
+#define CRYPTO_THIRD_PARTY_NSS_CHROMIUM_SHA_256_H_
-#define CERT_AddTempCertToPerm __CERT_AddTempCertToPerm
-#define PK11_CreateContextByRawKey __PK11_CreateContextByRawKey
-#define CERT_ClosePermCertDB __CERT_ClosePermCertDB
-#define CERT_DecodeDERCertificate __CERT_DecodeDERCertificate
-#define CERT_TraversePermCertsForNickname __CERT_TraversePermCertsForNickname
-#define CERT_TraversePermCertsForSubject __CERT_TraversePermCertsForSubject
+#include "crypto/third_party/nss/chromium-prtypes.h"
-#endif /* __nssrenam_h_ */
+struct SHA256ContextStr {
+ union {
+ PRUint32 w[64]; /* message schedule, input buffer, plus 48 words */
+ PRUint8 b[256];
+ } u;
+ PRUint32 h[8]; /* 8 state variables */
+ PRUint32 sizeHi,sizeLo; /* 64-bit count of hashed bytes. */
+};
+
+#endif /* CRYPTO_THIRD_PARTY_NSS_CHROMIUM_SHA_256_H_ */
« no previous file with comments | « crypto/third_party/nss/chromium-prtypes.h ('k') | crypto/third_party/nss/pk11akey.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698