OpenSSL GOST Parameter set
-
07-07-2021 - |
Вопрос
If there a way to insert custom parameters into the GOST 2001 parameters set programmatically and what API should be used? After being managed to generate EVP_PKEY
by simulating OpenSSLs' function I found out that parameters are bound to NID, so there's a need in adding custom ones there. Ideas anyone?
Решение
Problem solved next way:
- Upper error
FILL_GOST2001_PARAMS:unsupported parameter set
appears if you don't set yourCurveName
as one of already existing parameter set NID, so it should be like this:EC_GROUP_set_curve_name(CurveGroup,NID_id_GostR3410_2001_TestParamSet)
. - However setting one for default parameters set doesn't mean that It'll be used every time, for example in
EC_KEY_check_key()
function, you call it. What OpenSSL does is - it takes parameters from yourEC_KEY
object, so it's easily customizable, as long as those are correct (point is on curve and etc.).
Не связан с StackOverflow