Re: Help with export key as ASN.1 type EncryptedPrivateKeyInfo

2014-07-16 Thread Martin Basti
On 15/07/14 15:05, Dr. Stephen Henson wrote: On Mon, Jul 14, 2014, Martin Basti wrote: Hi list, I have RSA encrypted private key as byte sequence, and I need to export it as ASN.1 type EncryptedPrivateKeyInfo (RFC5958 section 3.) Currently I use the following code (shortened): unsigned char

Re: Help with export key as ASN.1 type EncryptedPrivateKeyInfo

2014-07-15 Thread Dr. Stephen Henson
On Mon, Jul 14, 2014, Martin Basti wrote: > Hi list, > > I have RSA encrypted private key as byte sequence, and I need to > export it as ASN.1 type EncryptedPrivateKeyInfo (RFC5958 section 3.) > > Currently I use the following code (shortened): > > unsigned char *pkey; //assigned encrypted prim

Help with export key as ASN.1 type EncryptedPrivateKeyInfo

2014-07-15 Thread Martin Basti
Hi list, I have RSA encrypted private key as byte sequence, and I need to export it as ASN.1 type EncryptedPrivateKeyInfo (RFC5958 section 3.) Currently I use the following code (shortened): unsigned char *pkey; //assigned encrypted primary key priv_key_info = PKCS8_PRIV_KEY_INFO_new(); aobj

Help with export key as ASN.1 type EncryptedPrivateKeyInfo

2014-07-15 Thread Martin Basti
Hi list, I have RSA encrypted private key as byte sequence, and I need to export it as ASN.1 type EncryptedPrivateKeyInfo (RFC5958 section 3.) Currently I use the following code (shortened): unsigned char *pkey; //assigned encrypted primary key priv_key_info = PKCS8_PRIV_KEY_INFO_new(); aobj