Logo Search packages:      
Sourcecode: openssl version File versions  Download package

int EC_GROUP_get_cofactor ( const EC_GROUP group,
BIGNUM cofactor,
BN_CTX ctx 

Gets the cofactor of a EC_GROUP

groupEC_GROUP object
cofactorBIGNUM to which the cofactor is copied
ctxBN_CTX object (optional)
1 on success and 0 if an error occured

Definition at line 328 of file ec_lib.c.

References EC_GROUP_get_cofactor().

Referenced by EC_GROUP_cmp(), and EC_GROUP_get_cofactor().

      if (!BN_copy(cofactor, &group->cofactor))
            return 0;

      return !BN_is_zero(&group->cofactor);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index