#include <string.h>
#include "ec_lcl.h"
#include <openssl/err.h>
#include <openssl/asn1t.h>
#include <openssl/objects.h>
Go to the source code of this file.
|
int | EC_GROUP_get_basis_type (const EC_GROUP *group) |
|
int | EC_GROUP_get_trinomial_basis (const EC_GROUP *group, unsigned int *k) |
|
int | EC_GROUP_get_pentanomial_basis (const EC_GROUP *group, unsigned int *k1, unsigned int *k2, unsigned int *k3) |
|
| ASN1_SEQUENCE (X9_62_PENTANOMIAL) |
|
| ASN1_ADB (X9_62_CHARACTERISTIC_TWO) |
|
| ASN1_SEQUENCE (X9_62_CHARACTERISTIC_TWO) |
|
| ASN1_ADB (X9_62_FIELDID) |
|
| ASN1_SEQUENCE (X9_62_FIELDID) |
|
EC_GROUP * | d2i_ECPKParameters (EC_GROUP **a, const unsigned char **in, long len) |
|
int | i2d_ECPKParameters (const EC_GROUP *a, unsigned char **out) |
|
EC_KEY * | d2i_ECPrivateKey (EC_KEY **a, const unsigned char **in, long len) |
|
int | i2d_ECPrivateKey (EC_KEY *a, unsigned char **out) |
|
int | i2d_ECParameters (EC_KEY *a, unsigned char **out) |
|
EC_KEY * | d2i_ECParameters (EC_KEY **a, const unsigned char **in, long len) |
|
EC_KEY * | o2i_ECPublicKey (EC_KEY **a, const unsigned char **in, long len) |
|
int | i2o_ECPublicKey (EC_KEY *a, unsigned char **out) |
|
EC_KEY* d2i_ECParameters |
( |
EC_KEY ** |
key, |
|
|
const unsigned char ** |
in, |
|
|
long |
len |
|
) |
| |
Decodes ec parameter from a memory buffer.
- Parameters
-
key | a pointer to a EC_KEY object which should be used (or NULL) |
in | pointer to memory with the DER encoded ec parameters |
len | length of the DER encoded ec parameters |
- Returns
- a EC_KEY object with the decoded parameters or NULL if an error occurred.
Definition at line 1344 of file ec_asn1.c.
EC_GROUP* d2i_ECPKParameters |
( |
EC_GROUP ** |
a, |
|
|
const unsigned char ** |
in, |
|
|
long |
len |
|
) |
| |
EC_KEY* d2i_ECPrivateKey |
( |
EC_KEY ** |
key, |
|
|
const unsigned char ** |
in, |
|
|
long |
len |
|
) |
| |
Decodes a private key from a memory buffer.
- Parameters
-
key | a pointer to a EC_KEY object which should be used (or NULL) |
in | pointer to memory with the DER encoded private key |
len | length of the DER encoded private key |
- Returns
- the decoded private key or NULL if an error occurred.
Definition at line 1116 of file ec_asn1.c.
int EC_GROUP_get_basis_type |
( |
const EC_GROUP * |
group | ) |
|
int EC_GROUP_get_pentanomial_basis |
( |
const EC_GROUP * |
group, |
|
|
unsigned int * |
k1, |
|
|
unsigned int * |
k2, |
|
|
unsigned int * |
k3 |
|
) |
| |
int EC_GROUP_get_trinomial_basis |
( |
const EC_GROUP * |
group, |
|
|
unsigned int * |
k |
|
) |
| |
int i2d_ECParameters |
( |
EC_KEY * |
key, |
|
|
unsigned char ** |
out |
|
) |
| |
Encodes ec parameter and stores the result in a buffer.
- Parameters
-
key | the EC_KEY object with ec paramters to encode |
out | the buffer for the result (if NULL the function returns number of bytes needed). |
- Returns
- 1 on success and 0 if an error occurred.
Definition at line 1334 of file ec_asn1.c.
int i2d_ECPKParameters |
( |
const EC_GROUP * |
a, |
|
|
unsigned char ** |
out |
|
) |
| |
int i2d_ECPrivateKey |
( |
EC_KEY * |
key, |
|
|
unsigned char ** |
out |
|
) |
| |
Encodes a private key object and stores the result in a buffer.
- Parameters
-
key | the EC_KEY object to encode |
out | the buffer for the result (if NULL the function returns number of bytes needed). |
- Returns
- 1 on success and 0 if an error occurred.
Definition at line 1224 of file ec_asn1.c.
int i2o_ECPublicKey |
( |
EC_KEY * |
key, |
|
|
unsigned char ** |
out |
|
) |
| |
Encodes a ec public key in an octet string.
- Parameters
-
key | the EC_KEY object with the public key |
out | the buffer for the result (if NULL the function returns number of bytes needed). |
- Returns
- 1 on success and 0 if an error occurred
Definition at line 1405 of file ec_asn1.c.
EC_KEY* o2i_ECPublicKey |
( |
EC_KEY ** |
key, |
|
|
const unsigned char ** |
in, |
|
|
long |
len |
|
) |
| |
Decodes a ec public key from a octet string.
- Parameters
-
key | a pointer to a EC_KEY object which should be used |
in | memory buffer with the encoded public key |
len | length of the encoded public key |
- Returns
- EC_KEY object with decoded public key or NULL if an error occurred.
Definition at line 1376 of file ec_asn1.c.