1
私はEC証明書を持っています(署名アルゴリズムはECDSAです)、openssl apiを使用してECキーの長さを知りたいと思います。 今、証明書からEC_KEY構造体を取得できますが、EC_KEY内のどの要素がキーの長さであり、どのように取得するのかわかりません。EC証明書のECキーの長さを取得する方法は?
次はEC_KEYの構造である:
struct ec_key_st {
int version;
EC_GROUP *group;// used to represent the definition of an elliptic curve
EC_POINT *pub_key;//used to store the points on the elliptic curve
BIGNUM *priv_key;
unsigned int enc_flag;
point_conversion_form_t conv_form;
int references;
int flags;
EC_EXTRA_DATA *method_data;
} /* EC_KEY */;
助けてください!