<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Heimdalx509library: hx509 crypto functions</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <p> <a href="http://www.h5l.org/"><img src="http://www.h5l.org/keyhole-heimdal.png" alt="keyhole logo"/></a> </p> <!-- end of header marker --> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> </ul> </div> </div> <div class="contents"> <h1>hx509 crypto functions</h1><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__hx509__crypto.html#g0580de84a86f6d373f5121855bf3a7d5">hx509_verify_signature</a> (hx509_context context, const hx509_cert signer, const AlgorithmIdentifier *alg, const heim_octet_string *data, const heim_octet_string *sig)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <hr><h2>Function Documentation</h2> <a class="anchor" name="g0580de84a86f6d373f5121855bf3a7d5"></a><!-- doxytag: member="cert.c::hx509_verify_signature" ref="g0580de84a86f6d373f5121855bf3a7d5" args="(hx509_context context, const hx509_cert signer, const AlgorithmIdentifier *alg, const heim_octet_string *data, const heim_octet_string *sig)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int hx509_verify_signature </td> <td>(</td> <td class="paramtype">hx509_context </td> <td class="paramname"> <em>context</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const hx509_cert </td> <td class="paramname"> <em>signer</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const AlgorithmIdentifier * </td> <td class="paramname"> <em>alg</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const heim_octet_string * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const heim_octet_string * </td> <td class="paramname"> <em>sig</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Verify a signature made using the private key of an certificate.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>A hx509 context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>signer</em> </td><td>the certificate that made the signature. </td></tr> <tr><td valign="top"></td><td valign="top"><em>alg</em> </td><td>algorthm that was used to sign the data. </td></tr> <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>the data that was signed. </td></tr> <tr><td valign="top"></td><td valign="top"><em>sig</em> </td><td>the sigature to verify.</td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>An hx509 error code, see <a class="el" href="group__hx509__error.html#g15791abff76719acb531223fdcbcac87">hx509_get_error_string()</a>. </dd></dl> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small> Generated on Wed Jan 11 14:07:40 2012 for Heimdalx509library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address> </body> </html> |