1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 3<title>Heimdalx509library: hx509 crypto functions</title> 4<link href="doxygen.css" rel="stylesheet" type="text/css"> 5<link href="tabs.css" rel="stylesheet" type="text/css"> 6</head><body> 7<p> 8<a href="http://www.h5l.org/"><img src="http://www.h5l.org/keyhole-heimdal.png" alt="keyhole logo"/></a> 9</p> 10<!-- end of header marker --> 11<!-- Generated by Doxygen 1.5.6 --> 12<div class="navigation" id="top"> 13 <div class="tabs"> 14 <ul> 15 <li><a href="index.html"><span>Main Page</span></a></li> 16 <li><a href="pages.html"><span>Related Pages</span></a></li> 17 <li><a href="modules.html"><span>Modules</span></a></li> 18 </ul> 19 </div> 20</div> 21<div class="contents"> 22<h1>hx509 crypto functions</h1><table border="0" cellpadding="0" cellspacing="0"> 23<tr><td></td></tr> 24<tr><td colspan="2"><br><h2>Functions</h2></td></tr> 25<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> 26 27</table> 28<hr><a name="_details"></a><h2>Detailed Description</h2> 29<hr><h2>Function Documentation</h2> 30<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)" --> 31<div class="memitem"> 32<div class="memproto"> 33 <table class="memname"> 34 <tr> 35 <td class="memname">int hx509_verify_signature </td> 36 <td>(</td> 37 <td class="paramtype">hx509_context </td> 38 <td class="paramname"> <em>context</em>, </td> 39 </tr> 40 <tr> 41 <td class="paramkey"></td> 42 <td></td> 43 <td class="paramtype">const hx509_cert </td> 44 <td class="paramname"> <em>signer</em>, </td> 45 </tr> 46 <tr> 47 <td class="paramkey"></td> 48 <td></td> 49 <td class="paramtype">const AlgorithmIdentifier * </td> 50 <td class="paramname"> <em>alg</em>, </td> 51 </tr> 52 <tr> 53 <td class="paramkey"></td> 54 <td></td> 55 <td class="paramtype">const heim_octet_string * </td> 56 <td class="paramname"> <em>data</em>, </td> 57 </tr> 58 <tr> 59 <td class="paramkey"></td> 60 <td></td> 61 <td class="paramtype">const heim_octet_string * </td> 62 <td class="paramname"> <em>sig</em></td><td> </td> 63 </tr> 64 <tr> 65 <td></td> 66 <td>)</td> 67 <td></td><td></td><td></td> 68 </tr> 69 </table> 70</div> 71<div class="memdoc"> 72 73<p> 74Verify a signature made using the private key of an certificate.<p> 75<dl compact><dt><b>Parameters:</b></dt><dd> 76 <table border="0" cellspacing="2" cellpadding="0"> 77 <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>A hx509 context. </td></tr> 78 <tr><td valign="top"></td><td valign="top"><em>signer</em> </td><td>the certificate that made the signature. </td></tr> 79 <tr><td valign="top"></td><td valign="top"><em>alg</em> </td><td>algorthm that was used to sign the data. </td></tr> 80 <tr><td valign="top"></td><td valign="top"><em>data</em> </td><td>the data that was signed. </td></tr> 81 <tr><td valign="top"></td><td valign="top"><em>sig</em> </td><td>the sigature to verify.</td></tr> 82 </table> 83</dl> 84<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> 85 86</div> 87</div><p> 88</div> 89<hr size="1"><address style="text-align: right;"><small> 90Generated 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> 91</body> 92</html> 93