This method loads the standard parts of an Eliptical Curve (EC) private key from a buffer.
This function only handles built-in curves that have a name. Calling this function requires that the p6cryptokey component was initialized with a p6IRandom component which is uses to generate part of the keys meta-data.
- Parameters
-
| curveId | [ in ] A numeric code representiation of an eliptic curve (e.g., CURVE_SECP112R1 for "secp112r1") |
| pD | [ in ] The private key has a BIG Integer value that we represent as a byte stream |
| dLength | [ in ] Contains the size in bytes of pD. |
- Returns
| Success | P6R::eOk | |
| Failure | P6R::eNotInitialized | Object is in an incorrect state. |
| P6R::eInvalidArg | One of the parameters is NULL. |
| P6R::eInvalidState | pRandom not set during call to initialize(). |
| P6R::eFailAndException | One of the parameters failed to load properly. |