[xmlsec] How load RSA key from RAM?

Aleksey Sanin aleksey at aleksey.com
Fri Aug 17 09:12:31 PDT 2007


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 <aleksey at aleksey.com>
> An: Martin Salo <Martin.Salo at gmx.net>
> CC: xmlsec at aleksey.com
> 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
>> xmlsec at aleksey.com
>> http://www.aleksey.com/mailman/listinfo/xmlsec
> 



More information about the xmlsec mailing list