diff options
author | Bodo Möller <bodo@openssl.org> | 2002-07-26 08:41:04 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-07-26 08:41:04 +0000 |
commit | 0bee0e6294882b18ffa0053597532058a19d6f89 (patch) | |
tree | 210c9fd5126e875e14b59945dc7829d0abb81566 /crypto/ecdsa/ecdsa.h | |
parent | 12593e6f45b146ac8f368e743238f67f22a52c80 (diff) |
Use SEC1 format for EC private keys.
This is not ECDSA specific, so it's now PEM_STRING_ECPRIVATEKEY etc.
Submitted by: Nils Larsch <nlarsch@compuserve.de>
Diffstat (limited to 'crypto/ecdsa/ecdsa.h')
-rw-r--r-- | crypto/ecdsa/ecdsa.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/crypto/ecdsa/ecdsa.h b/crypto/ecdsa/ecdsa.h index f9a34f14ae..00cd71d068 100644 --- a/crypto/ecdsa/ecdsa.h +++ b/crypto/ecdsa/ecdsa.h @@ -64,10 +64,7 @@ #endif #include <openssl/bn.h> #include <openssl/ec.h> -#include <openssl/crypto.h> #include <openssl/ossl_typ.h> -#include <openssl/asn1.h> -#include <openssl/asn1t.h> #ifdef __cplusplus extern "C" { @@ -106,6 +103,8 @@ struct ecdsa_st BIGNUM *kinv; /* signing pre-calc */ BIGNUM *r; /* signing pre-calc */ + unsigned int enc_flag; + int references; int flags; CRYPTO_EX_DATA ex_data; @@ -113,6 +112,10 @@ struct ecdsa_st struct engine_st *engine; }; +/* some values for the encoding_flag */ +#define ECDSA_PKEY_NO_PARAMETERS 0x001 +#define ECDSA_PKEY_NO_PUBKEY 0x002 + ECDSA_SIG *ECDSA_SIG_new(void); void ECDSA_SIG_free(ECDSA_SIG *a); int i2d_ECDSA_SIG(const ECDSA_SIG *a, unsigned char **pp); @@ -153,6 +156,11 @@ int ECDSAParameters_print_fp(FILE *fp, const ECDSA *x); int ECDSA_print_fp(FILE *fp, const ECDSA *x, int off); #endif +/* the ECDSA_{set|get}_enc_flag() specify the encoding + * of the elliptic curve private key */ +unsigned int ECDSA_get_enc_flag(const ECDSA *); +void ECDSA_set_enc_flag(ECDSA *, unsigned int); + /* The ECDSA_{set|get}_conversion_type() functions set/get the * conversion form for ec-points (see ec.h) in a ECDSA-structure */ void ECDSA_set_conversion_form(ECDSA *, const point_conversion_form_t); |