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

Side by Side Diff: nss/lib/cryptohi/cryptohi.h

Issue 319593003: Update to NSS 3.16.2 Beta 3. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Remove unused function SEC_NumberOrNameStringToOIDTag Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * crypto.h - public data structures and prototypes for the crypto library 2 * cryptohi.h - public prototypes for the crypto library
3 * 3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public 4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 7
8 #ifndef _CRYPTOHI_H_ 8 #ifndef _CRYPTOHI_H_
9 #define _CRYPTOHI_H_ 9 #define _CRYPTOHI_H_
10 10
11 #include "blapit.h" 11 #include "blapit.h"
12 12
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 unsigned int len); 49 unsigned int len);
50 extern SECItem *DSAU_DecodeDerSigToLen(const SECItem *item, unsigned int len); 50 extern SECItem *DSAU_DecodeDerSigToLen(const SECItem *item, unsigned int len);
51 51
52 /****************************************/ 52 /****************************************/
53 /* 53 /*
54 ** Signature creation operations 54 ** Signature creation operations
55 */ 55 */
56 56
57 /* 57 /*
58 ** Create a new signature context used for signing a data stream. 58 ** Create a new signature context used for signing a data stream.
59 **» "alg" the signature algorithm to use (e.g. SEC_OID_RSA_WITH_MD5) 59 ** "alg" the signature algorithm to use (e.g. SEC_OID_PKCS1_MD5_WITH_RSA_EN CRYPTION)
60 ** "privKey" the private key to use 60 ** "privKey" the private key to use
61 */ 61 */
62 extern SGNContext *SGN_NewContext(SECOidTag alg, SECKEYPrivateKey *privKey); 62 extern SGNContext *SGN_NewContext(SECOidTag alg, SECKEYPrivateKey *privKey);
63 63
64 /* 64 /*
65 ** Destroy a signature-context object 65 ** Destroy a signature-context object
66 ** "cx" the object 66 ** "cx" the object
67 ** "freeit" if PR_TRUE then free the object as well as its sub-objects 67 ** "freeit" if PR_TRUE then free the object as well as its sub-objects
68 */ 68 */
69 extern void SGN_DestroyContext(SGNContext *cx, PRBool freeit); 69 extern void SGN_DestroyContext(SGNContext *cx, PRBool freeit);
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 extern SECStatus VFY_VerifyDataWithAlgorithmID(const unsigned char *buf, 359 extern SECStatus VFY_VerifyDataWithAlgorithmID(const unsigned char *buf,
360 int len, const SECKEYPublicKey *key, 360 int len, const SECKEYPublicKey *key,
361 const SECItem *sig, 361 const SECItem *sig,
362 const SECAlgorithmID *algid, SECOidTag *hash, 362 const SECAlgorithmID *algid, SECOidTag *hash,
363 void *wincx); 363 void *wincx);
364 364
365 365
366 SEC_END_PROTOS 366 SEC_END_PROTOS
367 367
368 #endif /* _CRYPTOHI_H_ */ 368 #endif /* _CRYPTOHI_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698