EC_GROUP_get_cofactor

Gets the cofactor of a EC_GROUP

Synopsis

Declared in <openssl/ec.h>

int
EC_GROUP_get_cofactor(
    EC_GROUP const* group,
    BIGNUM* cofactor,
    BN_CTX* ctx);

Return Value

1 on success and 0 if an error occurred

Parameters

NameDescription
groupEC_GROUP object
cofactorBIGNUM to which the cofactor is copied
ctxunused