This method loads the standard parts of an Eliptical Curve (EC) private key from a buffer containing an ASN.1 encoded key.
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
-
pASN1 | [ in ] The private key represented in an ASN.1 structure. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | Object is in an incorrect state. |
P6R::eInvalidArg | ASN1.pString is NULL or ASN1.length is zerp |
P6R::eInvalidState | pRandom not set during call to initialize(). |
P6R::eFailAndException | One of the parameters failed to load properly. |