EC_GROUP_get_trinomial_basis

Return the trinomial basis degree k for a characteristic-2 curve group.

Synopsis

Declared in <openssl/ec.h>

int
EC_GROUP_get_trinomial_basis(
    EC_GROUP const* group,
    unsigned int* k);

Return Value

1 on success, or 0 if group does not use a trinomial basis.

Parameters

NameDescription
groupEC_GROUP defined over GF(2^m) with a trinomial field polynomial.
kReceives the middle term degree of x^m + x^k + 1.