I looked at the source code and it seems that this method
is not implemented for RSA keys. Sorry :(

Aleksey

Martin Salo wrote:
But if I try this, I cannot load the key too:

printf("%s", cRsaKey2048Private_Base64); // Prints the key in Base64 to stdout.
oKey = xmlSecKeyReadMemory(xmlSecKeyDataRsaId,
                           BAD_CAST cRsaKey2048Private_Base64,
                           strlen(cRsaKey2048Private_Base64));


If I uses this instead:
xmlSecCryptoAppKeyLoad(sPathToRsaKey2048Priv, xmlSecKeyDataFormatPem, 0, 0, 0);
All worked finde, so the key is valid.


-------- Original-Nachricht --------
Datum: Fri, 17 Aug 2007 08:25:27 -0700
Von: Aleksey Sanin <[EMAIL PROTECTED]>
An: Martin Salo <[EMAIL PROTECTED]>
CC: [email protected]
Betreff: Re: [xmlsec] How load RSA key from RAM?

// Convert key into binary:
I don't think you need to do this step.

Aleksey

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to