ec.h 602 B

12345678910111213141516171819202122
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #ifndef __ec_h_
  5. #define __ec_h_
  6. #define EC_DEBUG 0
  7. #define ANSI_X962_CURVE_OID_TOTAL_LEN 10
  8. #define SECG_CURVE_OID_TOTAL_LEN 7
  9. #define PKIX_NEWCURVES_OID_TOTAL_LEN 11
  10. struct ECMethodStr {
  11. ECCurveName name;
  12. SECStatus (*mul)(SECItem *result, SECItem *scalar, SECItem *point);
  13. SECStatus (*validate)(const SECItem *point);
  14. };
  15. typedef struct ECMethodStr ECMethod;
  16. #endif /* __ec_h_ */