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

int EC_GROUP_get_order ( const EC_GROUP group,
BIGNUM order,
BN_CTX ctx 

Gets the order of a EC_GROUP

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

Definition at line 319 of file ec_lib.c.

References EC_GROUP_get_order().

Referenced by EC_GROUP_check(), EC_GROUP_cmp(), EC_GROUP_get_order(), EC_KEY_generate_key(), and ECDSA_size().

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

      return !BN_is_zero(order);

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