Set the algorithm, version, parameters, and encoded private key on a PKCS#8 PrivateKeyInfo.
Synopsis
Declared in <openssl/x509.h>
int
PKCS8_pkey_set0(
PKCS8_PRIV_KEY_INFO* priv,
ASN1_OBJECT* aobj,
int version,
int ptype,
void* pval,
unsigned char* penc,
int penclen);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
priv |
PKCS#8 structure to update. |
aobj |
Algorithm OID to assign (ownership transferred as implemented). |
version |
PKCS#8 version field value. |
ptype |
ASN.1 type of |
pval |
Algorithm parameters value matching |
penc |
Encoded private‐key octets; ownership transferred on success. |
penclen |
Length of |
Created with MrDocs