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

Side by Side Diff: nss/lib/freebl/blapi.h

Issue 329663003: Apply the fix for NSS bug 1021102 from the NSS upstream. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: RSA_PrivateKeyCheck should require p > q. 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
« no previous file with comments | « README.chromium ('k') | nss/lib/freebl/rsa.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * blapi.h - public prototypes for the freebl library 2 * blapi.h - public prototypes for the freebl 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 _BLAPI_H_ 8 #ifndef _BLAPI_H_
9 #define _BLAPI_H_ 9 #define _BLAPI_H_
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ** the operation for validity by performing a test operation first. 55 ** the operation for validity by performing a test operation first.
56 ** Length of input and output buffers are equal to key's modulus len. 56 ** Length of input and output buffers are equal to key's modulus len.
57 */ 57 */
58 extern SECStatus RSA_PrivateKeyOpDoubleChecked(RSAPrivateKey * key, 58 extern SECStatus RSA_PrivateKeyOpDoubleChecked(RSAPrivateKey * key,
59 unsigned char * output, 59 unsigned char * output,
60 const unsigned char * input); 60 const unsigned char * input);
61 61
62 /* 62 /*
63 ** Perform a check of private key parameters for consistency. 63 ** Perform a check of private key parameters for consistency.
64 */ 64 */
65 extern SECStatus RSA_PrivateKeyCheck(RSAPrivateKey *key); 65 extern SECStatus RSA_PrivateKeyCheck(const RSAPrivateKey *key);
66 66
67 /* 67 /*
68 ** Given only minimal private key parameters, fill in the rest of the 68 ** Given only minimal private key parameters, fill in the rest of the
69 ** parameters. 69 ** parameters.
70 ** 70 **
71 ** 71 **
72 ** All the entries, including those supplied by the caller, will be 72 ** All the entries, including those supplied by the caller, will be
73 ** overwritten with data alocated out of the arena. 73 ** overwritten with data alocated out of the arena.
74 ** 74 **
75 ** If no arena is supplied, one will be created. 75 ** If no arena is supplied, one will be created.
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 const SECItem *encodedParams, ECParams *params); 1616 const SECItem *encodedParams, ECParams *params);
1617 extern SECStatus EC_DecodeParams(const SECItem *encodedParams, 1617 extern SECStatus EC_DecodeParams(const SECItem *encodedParams,
1618 ECParams **ecparams); 1618 ECParams **ecparams);
1619 extern SECStatus EC_CopyParams(PLArenaPool *arena, ECParams *dstParams, 1619 extern SECStatus EC_CopyParams(PLArenaPool *arena, ECParams *dstParams,
1620 const ECParams *srcParams); 1620 const ECParams *srcParams);
1621 #endif 1621 #endif
1622 1622
1623 SEC_END_PROTOS 1623 SEC_END_PROTOS
1624 1624
1625 #endif /* _BLAPI_H_ */ 1625 #endif /* _BLAPI_H_ */
OLDNEW
« no previous file with comments | « README.chromium ('k') | nss/lib/freebl/rsa.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698