#include <string.h>
#include <openssl/err.h>
#include <openssl/opensslv.h>
#include "ec_lcl.h"
Go to the source code of this file.
|
int | EC_POINT_set_compressed_coordinates_GFp (const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, int y_bit, BN_CTX *ctx) |
|
int | EC_POINT_set_compressed_coordinates_GF2m (const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, int y_bit, BN_CTX *ctx) |
|
size_t | EC_POINT_point2oct (const EC_GROUP *group, const EC_POINT *point, point_conversion_form_t form, unsigned char *buf, size_t len, BN_CTX *ctx) |
|
int | EC_POINT_oct2point (const EC_GROUP *group, EC_POINT *point, const unsigned char *buf, size_t len, BN_CTX *ctx) |
|
int EC_POINT_oct2point |
( |
const EC_GROUP * |
group, |
|
|
EC_POINT * |
p, |
|
|
const unsigned char * |
buf, |
|
|
size_t |
len, |
|
|
BN_CTX * |
ctx |
|
) |
| |
Decodes a EC_POINT from a octet string
- Parameters
-
group | underlying EC_GROUP object |
p | EC_POINT object |
buf | memory buffer with the encoded ec point |
len | length of the encoded ec point |
ctx | BN_CTX object (optional) |
- Returns
- 1 on success and 0 if an error occured
Definition at line 167 of file ec_oct.c.
Encodes a EC_POINT object to a octet string
- Parameters
-
group | underlying EC_GROUP object |
p | EC_POINT object |
form | point conversion form |
buf | memory buffer for the result. If NULL the function returns required buffer size. |
len | length of the memory buffer |
ctx | BN_CTX object (optional) |
- Returns
- the length of the encoded octet string or 0 if an error occurred
Definition at line 132 of file ec_oct.c.
Sets the x9.62 compressed coordinates of a EC_POINT over GF2m
- Parameters
-
group | underlying EC_GROUP object |
p | EC_POINT object |
x | BIGNUM with x-coordinate |
y_bit | integer with the y-Bit (either 0 or 1) |
ctx | BN_CTX object (optional) |
- Returns
- 1 on success and 0 if an error occured
Definition at line 105 of file ec_oct.c.
Sets the x9.62 compressed coordinates of a EC_POINT over GFp
- Parameters
-
group | underlying EC_GROUP object |
p | EC_POINT object |
x | BIGNUM with x-coordinate |
y_bit | integer with the y-Bit (either 0 or 1) |
ctx | BN_CTX object (optional) |
- Returns
- 1 on success and 0 if an error occured
Definition at line 71 of file ec_oct.c.