OLD | NEW |
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 Loading... |
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 Loading... |
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_ */ |
OLD | NEW |