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>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.9.1 --> 12<script type="text/javascript" src="menudata.js"></script> 13<script type="text/javascript" src="menu.js"></script> 14<script type="text/javascript"> 15/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ 16$(function() { 17 initMenu('',false,false,'search.php','Search'); 18}); 19/* @license-end */</script> 20<div id="main-nav"></div> 21</div><!-- top --> 22<div class="header"> 23 <div class="summary"> 24<a href="#func-members">Functions</a> </div> 25 <div class="headertitle"> 26<div class="title">hx509 crypto functions</div> </div> 27</div><!--header--> 28<div class="contents"> 29<table class="memberdecls"> 30<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> 31Functions</h2></td></tr> 32<tr class="memitem:ga0580de84a86f6d373f5121855bf3a7d5"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__hx509__crypto.html#ga0580de84a86f6d373f5121855bf3a7d5">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> 33<tr class="separator:ga0580de84a86f6d373f5121855bf3a7d5"><td class="memSeparator" colspan="2"> </td></tr> 34</table> 35<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> 36<h2 class="groupheader">Function Documentation</h2> 37<a id="ga0580de84a86f6d373f5121855bf3a7d5"></a> 38<h2 class="memtitle"><span class="permalink"><a href="#ga0580de84a86f6d373f5121855bf3a7d5">◆ </a></span>hx509_verify_signature()</h2> 39 40<div class="memitem"> 41<div class="memproto"> 42 <table class="memname"> 43 <tr> 44 <td class="memname">int hx509_verify_signature </td> 45 <td>(</td> 46 <td class="paramtype">hx509_context </td> 47 <td class="paramname"><em>context</em>, </td> 48 </tr> 49 <tr> 50 <td class="paramkey"></td> 51 <td></td> 52 <td class="paramtype">const hx509_cert </td> 53 <td class="paramname"><em>signer</em>, </td> 54 </tr> 55 <tr> 56 <td class="paramkey"></td> 57 <td></td> 58 <td class="paramtype">const AlgorithmIdentifier * </td> 59 <td class="paramname"><em>alg</em>, </td> 60 </tr> 61 <tr> 62 <td class="paramkey"></td> 63 <td></td> 64 <td class="paramtype">const heim_octet_string * </td> 65 <td class="paramname"><em>data</em>, </td> 66 </tr> 67 <tr> 68 <td class="paramkey"></td> 69 <td></td> 70 <td class="paramtype">const heim_octet_string * </td> 71 <td class="paramname"><em>sig</em> </td> 72 </tr> 73 <tr> 74 <td></td> 75 <td>)</td> 76 <td></td><td></td> 77 </tr> 78 </table> 79</div><div class="memdoc"> 80<p>Verify a signature made using the private key of an certificate.</p> 81<dl class="params"><dt>Parameters</dt><dd> 82 <table class="params"> 83 <tr><td class="paramname">context</td><td>A hx509 context. </td></tr> 84 <tr><td class="paramname">signer</td><td>the certificate that made the signature. </td></tr> 85 <tr><td class="paramname">alg</td><td>algorthm that was used to sign the data. </td></tr> 86 <tr><td class="paramname">data</td><td>the data that was signed. </td></tr> 87 <tr><td class="paramname">sig</td><td>the sigature to verify.</td></tr> 88 </table> 89 </dd> 90</dl> 91<dl class="section return"><dt>Returns</dt><dd>An hx509 error code, see <a class="el" href="group__hx509__error.html#ga15791abff76719acb531223fdcbcac87">hx509_get_error_string()</a>. </dd></dl> 92 93</div> 94</div> 95</div><!-- contents --> 96<hr size="1"><address style="text-align: right;"><small> 97Generated on Tue Nov 15 2022 14:04:25 for Heimdal x509 library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.9.1</small></address> 98</body> 99</html> 100