Reorganise ECC code for inclusion in FIPS module.

Move compression, point2oct and oct2point functions into separate files.

Add a flags field to EC_METHOD.

Add a flag EC_FLAGS_DEFAULT_OCT to use the default compession and oct
functions (all existing methods do this). This removes dependencies from
EC_METHOD while keeping original functionality.
This commit is contained in:
Dr. Stephen Henson
2011-02-14 16:52:12 +00:00
parent bf2546f947
commit 84b08eee4b
14 changed files with 1055 additions and 782 deletions

View File

@@ -61,6 +61,8 @@
* contributed to the OpenSSL project.
*/
#define OPENSSL_FIPSAPI
#include <string.h>
#include "ec_lcl.h"
#include <openssl/err.h>