<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=778031204-26052005><FONT face=Arial size=2>I'm wanting to write
a program to validate signed xml (signed using an RSA/openSSL private key) using
a public key linked to my application.</FONT></SPAN></DIV>
<DIV><SPAN class=778031204-26052005><FONT face=Arial size=2>I've been looking
at <!--StartFragment --><FONT face="Times New Roman" size=3> </FONT>
<H3>xmlSecKeyDataBinRead ()</H3>
<DIV><SPAN class=778031204-26052005>is this the appropriate function for the
task, to convert by raw key to xmlSecKeyPtr?</SPAN></DIV>
<DIV><SPAN class=778031204-26052005></SPAN> </DIV>
<DIV><SPAN class=778031204-26052005>Using openssl to create the private and
public keys i have the following</SPAN></DIV>
<DIV><SPAN class=778031204-26052005></SPAN> </DIV>
<DIV><SPAN class=778031204-26052005>-----BEGIN PUBLIC
KEY-----<BR>MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMYkh5vHrw5uBp4BFZgyLKnbko<BR>qfQqiZuOfUdwTfg+i5J9rPpkEiX3TDIkLiDqV+GTbgOjip2psKMNkcQmdHZhUcVd<BR>qRZIxAe3EEqEHDh1gk+Pw565zfyLs7s02InN6NAm7YmzVczPe/84TI0ZDfm6b5Al<BR>0wLFXTLqm+QAYsG/BQIDAQAB<BR>-----END
PUBLIC KEY-----<BR></SPAN></DIV>
<DIV><SPAN class=778031204-26052005>Should this be the contents of the
const xmlSecByte* buf parameter, or more of a binary format?</SPAN></DIV>
<DIV><SPAN class=778031204-26052005>Strip the ---Begin.... ... End----- stuff
out or leave it in?</SPAN></DIV>
<DIV><SPAN class=778031204-26052005></SPAN> </DIV>
<DIV><SPAN class=778031204-26052005>Cheers</SPAN></DIV>
<DIV><SPAN class=778031204-26052005></SPAN> </DIV>
<DIV><SPAN
class=778031204-26052005>Simon</DIV></SPAN></FONT></SPAN></DIV></BODY></HTML>