Looking for "EC_GROUP_to_params" function in OpenSSL 3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello OpenSSL users,

I'm currently searching for the reverse operation of
EC_GROUP_new_from_params() which should create an EC_GROUP from an
OSSL_PARAM array in the public API.
I need to convert an EC_GROUP back to an OSSL_PARAM array to modify it
(in this case shift the generator/base point of the group). 

A suitable function is available in 'include/crypto/ec.h' called
ossl_ec_group_todata() but I couldn't find a way to access it via
public API.

Is there something I've overlooked or is the counterpart function of
EC_GROUP_new_from_params() missing in the public API? If this the case,
would you accept a pull request to add a function like
EC_GROUP_to_params() which internally calls ossl_ec_group_todata()?


Thanks a lot,
Oliver

------


(/include/openssl/ec.h)
EC_GROUP *EC_GROUP_new_from_params(const OSSL_PARAM params[],
 OSSL_LIB_CTX *libctx, const char *propq);


(include/crypto/ec.h)

int ossl_ec_group_todata(const EC_GROUP *group, OSSL_PARAM_BLD *tmpl,
                         OSSL_PARAM params[], OSSL_LIB_CTX *libctx,
                         const char *propq,
                         BN_CTX *bnctx, unsigned char **genbuf);

int ossl_ec_group_fromdata(EC_KEY *ec, const OSSL_PARAM params[]);






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux