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

size_t EC_POINT_point2oct ( const EC_GROUP group,
const EC_POINT p,
point_conversion_form_t  form,
unsigned char *  buf,
size_t  len,
BN_CTX ctx 

Encodes a EC_POINT object to a octet string

groupunderlying EC_GROUP object
pEC_POINT object
formpoint conversion form
bufmemory buffer for the result. If NULL the function returns required buffer size.
lenlength of the memory buffer
ctxBN_CTX object (optional)
the length of the encoded octet string or 0 if an error occurred

Definition at line 945 of file ec_lib.c.

References EC_POINT_point2oct().

Referenced by EC_POINT_point2oct(), i2d_ECPrivateKey(), and i2o_ECPublicKey().

      if (group->meth->point2oct == 0)
            return 0;
      if (group->meth != point->meth)
            return 0;
      return group->meth->point2oct(group, point, form, buf, len, ctx);

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