| OLD | NEW |
| 1 /* | 1 /* |
| 2 * blapit.h - public data structures for the crypto library | 2 * blapit.h - public data structures 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 /* $Id$ */ | 7 /* $Id$ */ |
| 8 | 8 |
| 9 #ifndef _BLAPIT_H_ | 9 #ifndef _BLAPIT_H_ |
| 10 #define _BLAPIT_H_ | 10 #define _BLAPIT_H_ |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 | 75 |
| 76 /* XXX We shouldn't have to hard code this limit. For | 76 /* XXX We shouldn't have to hard code this limit. For |
| 77 * now, this is the quickest way to support ECDSA signature | 77 * now, this is the quickest way to support ECDSA signature |
| 78 * processing (ECDSA signature lengths depend on curve | 78 * processing (ECDSA signature lengths depend on curve |
| 79 * size). This limit is sufficient for curves upto | 79 * size). This limit is sufficient for curves upto |
| 80 * 576 bits. | 80 * 576 bits. |
| 81 */ | 81 */ |
| 82 #define MAX_ECKEY_LEN 72 /* Bytes */ | 82 #define MAX_ECKEY_LEN 72 /* Bytes */ |
| 83 | 83 |
| 84 #ifdef NSS_ECC_MORE_THAN_SUITE_B |
| 85 #define EC_MAX_KEY 571 /* in bits */ |
| 86 #define EC_MIN_KEY 112 /* in bits */ |
| 87 #else |
| 88 #define EC_MAX_KEY 521 /* in bits */ |
| 89 #define EC_MIN_KEY 256 /* in bits */ |
| 90 #endif |
| 91 |
| 84 /* EC point compression format */ | 92 /* EC point compression format */ |
| 85 #define EC_POINT_FORM_COMPRESSED_Y0 0x02 | 93 #define EC_POINT_FORM_COMPRESSED_Y0 0x02 |
| 86 #define EC_POINT_FORM_COMPRESSED_Y1 0x03 | 94 #define EC_POINT_FORM_COMPRESSED_Y1 0x03 |
| 87 #define EC_POINT_FORM_UNCOMPRESSED 0x04 | 95 #define EC_POINT_FORM_UNCOMPRESSED 0x04 |
| 88 #define EC_POINT_FORM_HYBRID_Y0 0x06 | 96 #define EC_POINT_FORM_HYBRID_Y0 0x06 |
| 89 #define EC_POINT_FORM_HYBRID_Y1 0x07 | 97 #define EC_POINT_FORM_HYBRID_Y1 0x07 |
| 90 | 98 |
| 91 /* | 99 /* |
| 92 * Number of bytes each hash algorithm produces | 100 * Number of bytes each hash algorithm produces |
| 93 */ | 101 */ |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 int, | 414 int, |
| 407 unsigned int , | 415 unsigned int , |
| 408 unsigned int ); | 416 unsigned int ); |
| 409 typedef SECStatus (*BLapiEncrypt)(void *cx, unsigned char *output, | 417 typedef SECStatus (*BLapiEncrypt)(void *cx, unsigned char *output, |
| 410 unsigned int *outputLen, | 418 unsigned int *outputLen, |
| 411 unsigned int maxOutputLen, | 419 unsigned int maxOutputLen, |
| 412 const unsigned char *input, | 420 const unsigned char *input, |
| 413 unsigned int inputLen); | 421 unsigned int inputLen); |
| 414 | 422 |
| 415 #endif /* _BLAPIT_H_ */ | 423 #endif /* _BLAPIT_H_ */ |
| OLD | NEW |