Deleted Added
full compact
ec.h (160814) ec.h (162911)
1/* crypto/ec/ec.h */
2/*
3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */
5/* ====================================================================
6 * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 79 unchanged lines hidden (view full) ---

88extern "C" {
89#elif defined(__SUNPRO_C)
90# if __SUNPRO_C >= 0x520
91# pragma error_messages (off,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
92# endif
93#endif
94
95
1/* crypto/ec/ec.h */
2/*
3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */
5/* ====================================================================
6 * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 79 unchanged lines hidden (view full) ---

88extern "C" {
89#elif defined(__SUNPRO_C)
90# if __SUNPRO_C >= 0x520
91# pragma error_messages (off,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)
92# endif
93#endif
94
95
96#ifndef OPENSSL_ECC_MAX_FIELD_BITS
97# define OPENSSL_ECC_MAX_FIELD_BITS 661
98#endif
99
96typedef enum {
97 /* values as defined in X9.62 (ECDSA) and elsewhere */
98 POINT_CONVERSION_COMPRESSED = 2,
99 POINT_CONVERSION_UNCOMPRESSED = 4,
100 POINT_CONVERSION_HYBRID = 6
101} point_conversion_form_t;
102
103

--- 373 unchanged lines hidden (view full) ---

477
478/* Reason codes. */
479#define EC_R_ASN1_ERROR 115
480#define EC_R_ASN1_UNKNOWN_FIELD 116
481#define EC_R_BUFFER_TOO_SMALL 100
482#define EC_R_D2I_ECPKPARAMETERS_FAILURE 117
483#define EC_R_DISCRIMINANT_IS_ZERO 118
484#define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE 119
100typedef enum {
101 /* values as defined in X9.62 (ECDSA) and elsewhere */
102 POINT_CONVERSION_COMPRESSED = 2,
103 POINT_CONVERSION_UNCOMPRESSED = 4,
104 POINT_CONVERSION_HYBRID = 6
105} point_conversion_form_t;
106
107

--- 373 unchanged lines hidden (view full) ---

481
482/* Reason codes. */
483#define EC_R_ASN1_ERROR 115
484#define EC_R_ASN1_UNKNOWN_FIELD 116
485#define EC_R_BUFFER_TOO_SMALL 100
486#define EC_R_D2I_ECPKPARAMETERS_FAILURE 117
487#define EC_R_DISCRIMINANT_IS_ZERO 118
488#define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE 119
489#define EC_R_FIELD_TOO_LARGE 138
485#define EC_R_GROUP2PKPARAMETERS_FAILURE 120
486#define EC_R_I2D_ECPKPARAMETERS_FAILURE 121
487#define EC_R_INCOMPATIBLE_OBJECTS 101
488#define EC_R_INVALID_ARGUMENT 112
489#define EC_R_INVALID_COMPRESSED_POINT 110
490#define EC_R_INVALID_COMPRESSION_BIT 109
491#define EC_R_INVALID_ENCODING 102
492#define EC_R_INVALID_FIELD 103
493#define EC_R_INVALID_FORM 104
494#define EC_R_INVALID_GROUP_ORDER 122
490#define EC_R_GROUP2PKPARAMETERS_FAILURE 120
491#define EC_R_I2D_ECPKPARAMETERS_FAILURE 121
492#define EC_R_INCOMPATIBLE_OBJECTS 101
493#define EC_R_INVALID_ARGUMENT 112
494#define EC_R_INVALID_COMPRESSED_POINT 110
495#define EC_R_INVALID_COMPRESSION_BIT 109
496#define EC_R_INVALID_ENCODING 102
497#define EC_R_INVALID_FIELD 103
498#define EC_R_INVALID_FORM 104
499#define EC_R_INVALID_GROUP_ORDER 122
500#define EC_R_INVALID_PENTANOMIAL_BASIS 132
495#define EC_R_INVALID_PRIVATE_KEY 123
501#define EC_R_INVALID_PRIVATE_KEY 123
502#define EC_R_INVALID_TRINOMIAL_BASIS 137
496#define EC_R_MISSING_PARAMETERS 124
497#define EC_R_MISSING_PRIVATE_KEY 125
498#define EC_R_NOT_A_NIST_PRIME 135
499#define EC_R_NOT_A_SUPPORTED_NIST_PRIME 136
500#define EC_R_NOT_IMPLEMENTED 126
501#define EC_R_NOT_INITIALIZED 111
502#define EC_R_NO_FIELD_MOD 133
503#define EC_R_PASSED_NULL_PARAMETER 134

--- 15 unchanged lines hidden ---
503#define EC_R_MISSING_PARAMETERS 124
504#define EC_R_MISSING_PRIVATE_KEY 125
505#define EC_R_NOT_A_NIST_PRIME 135
506#define EC_R_NOT_A_SUPPORTED_NIST_PRIME 136
507#define EC_R_NOT_IMPLEMENTED 126
508#define EC_R_NOT_INITIALIZED 111
509#define EC_R_NO_FIELD_MOD 133
510#define EC_R_PASSED_NULL_PARAMETER 134

--- 15 unchanged lines hidden ---