Re: EVP_PKEY_get_int_param is not getting degree from EC key

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

 



On Tue, 2022-01-04 at 14:17 +0000, Blumenthal, Uri - 0553 - MITLL
wrote:
> Now I became interested. ;-)
> 
> Theoretically, shouldn’t
> 
> EVP_PKEY_get_int_param(pkey, OSSL_PARAM_EC_ORDER, &(unsigned
> int)order)
> 
> work? I verified that it does not seem to work, at least in the
> obvious context. 

OSSL_PARAM_EC_ORDER is an unsigned integer (also a bignum) and it won't
fit into int. So that's the reason why that call fails.

Also the order is not a degree (maximum number of bits of a curve
coordinate).

-- 
Tomáš Mráz, OpenSSL





[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