Retrieves settings from an ECC parameters object.
#include "huecc.h"
int hu_ECCParamsGet(sb_Params eccParams, int *fieldType, size_t *reducLen, unsigned char *reduc, size_t *seedLen, unsigned char *seed, size_t *aLen, unsigned char *a, size_t *bLen, unsigned char *b, size_t *GLen, unsigned char *G, size_t *OrdLen, unsigned char *Ord, size_t *CofactLen, unsigned char *Cofact, size_t *OIDLen, unsigned char *OID, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ECC parameters object.
Type of underlying finite field. The two values that can be returned are SB_ECC_FIELD_F2M and SB_ECC_FIELD_FP.
The length (in bytes) of reduc.
Prime (SB_ECC_FIELD_FP) or irreducible polynomial (SB_ECC_FIELD_F2M) defining the underlying finite field.
The length (in bytes) of seed.
The seed from which parameters were generated.
The length (in bytes) of a.
Coefficient a in the elliptic curve equation.
The length (in bytes) of b.
Coefficient b in the elliptic curve equation.
The length (in bytes) of G.
The generator or base point.
The length (in bytes) of Ord.
The order of the base point.
The length (in bytes) of Cofact.
Cofactor.
The length (in bytes) of OID.
The ASN.1 object identifier of curve parameters (DER-encoded).
A global context.
One or more of the domain parameters can be retrieved in one call to this function.
If the length of a parameter is known, then a pointer to a buffer large enough to hold the parameter should be passed in the appropriate argument and its length in the corresponding length argument. This function will copy the value into the buffer and set the actual length of the value in the length argument.
If a parameter argument is NULL, then this function will set the correct length of the parameter in the length argument. If the argument is not NULL but the corresponding length argument is too small, this function will return an error.
Set both the parameter argument and its length to NULL for any parameters that are to be ignored.
The eccParams object pointer is NULL.
The eccParams object is NULL.
The tag for the params object is not of the expected type.
The output buffer length is invalid.
Success.