1
0

group__jose__jwk.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.13"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>José: JWK</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">José
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.13 -->
  33. <script type="text/javascript">
  34. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  35. </script>
  36. <script type="text/javascript" src="menudata.js"></script>
  37. <script type="text/javascript" src="menu.js"></script>
  38. <script type="text/javascript">
  39. $(function() {
  40. initMenu('',true,false,'search.php','Search');
  41. $(document).ready(function() { init_search(); });
  42. });
  43. </script>
  44. <div id="main-nav"></div>
  45. </div><!-- top -->
  46. <!-- window showing the filter options -->
  47. <div id="MSearchSelectWindow"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. onkeydown="return searchBox.OnSearchSelectKey(event)">
  51. </div>
  52. <!-- iframe showing the search results (closed by default) -->
  53. <div id="MSearchResultsWindow">
  54. <iframe src="javascript:void(0)" frameborder="0"
  55. name="MSearchResults" id="MSearchResults">
  56. </iframe>
  57. </div>
  58. <div class="header">
  59. <div class="summary">
  60. <a href="#func-members">Functions</a> </div>
  61. <div class="headertitle">
  62. <div class="title">JWK</div> </div>
  63. </div><!--header-->
  64. <div class="contents">
  65. <p>JSON Web Keys (RFC 7517)
  66. <a href="#details">More...</a></p>
  67. <table class="memberdecls">
  68. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  69. Functions</h2></td></tr>
  70. <tr class="memitem:gac4daef7aeb077caaa459f07af353e9a8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__jose__jwk.html#gac4daef7aeb077caaa459f07af353e9a8">jose_jwk_gen</a> (jose_cfg_t *cfg, json_t *jwk)</td></tr>
  71. <tr class="memdesc:gac4daef7aeb077caaa459f07af353e9a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates a new JWK. <a href="#gac4daef7aeb077caaa459f07af353e9a8">More...</a><br /></td></tr>
  72. <tr class="separator:gac4daef7aeb077caaa459f07af353e9a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  73. <tr class="memitem:ga3ebb220fa6f93ad00c6589400c1a441c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__jose__jwk.html#ga3ebb220fa6f93ad00c6589400c1a441c">jose_jwk_pub</a> (jose_cfg_t *cfg, json_t *jwk)</td></tr>
  74. <tr class="memdesc:ga3ebb220fa6f93ad00c6589400c1a441c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes all private key material from a JWK. <a href="#ga3ebb220fa6f93ad00c6589400c1a441c">More...</a><br /></td></tr>
  75. <tr class="separator:ga3ebb220fa6f93ad00c6589400c1a441c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. <tr class="memitem:gaa2023d0376c2e5ca14c2177f80f8ecd5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__jose__jwk.html#gaa2023d0376c2e5ca14c2177f80f8ecd5">jose_jwk_prm</a> (jose_cfg_t *cfg, const json_t *jwk, bool req, const char *op)</td></tr>
  77. <tr class="memdesc:gaa2023d0376c2e5ca14c2177f80f8ecd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if an operation is permitted for a JWK. <a href="#gaa2023d0376c2e5ca14c2177f80f8ecd5">More...</a><br /></td></tr>
  78. <tr class="separator:gaa2023d0376c2e5ca14c2177f80f8ecd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:ga4f5d2e9dc5f9e24646808b502b87b764"><td class="memItemLeft" align="right" valign="top">json_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__jose__jwk.html#ga4f5d2e9dc5f9e24646808b502b87b764">jose_jwk_thp</a> (jose_cfg_t *cfg, const json_t *jwk, const char *alg)</td></tr>
  80. <tr class="memdesc:ga4f5d2e9dc5f9e24646808b502b87b764"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the thumbprint of a JWK as a URL-safe Base64 encoded JSON string. <a href="#ga4f5d2e9dc5f9e24646808b502b87b764">More...</a><br /></td></tr>
  81. <tr class="separator:ga4f5d2e9dc5f9e24646808b502b87b764"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. <tr class="memitem:ga03f820f8de4e63ffe2feb3490236040e"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__jose__jwk.html#ga03f820f8de4e63ffe2feb3490236040e">jose_jwk_thp_buf</a> (jose_cfg_t *cfg, const json_t *jwk, const char *alg, uint8_t *thp, size_t len)</td></tr>
  83. <tr class="memdesc:ga03f820f8de4e63ffe2feb3490236040e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the thumbprint of a JWK. <a href="#ga03f820f8de4e63ffe2feb3490236040e">More...</a><br /></td></tr>
  84. <tr class="separator:ga03f820f8de4e63ffe2feb3490236040e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:ga9977a603c39b1b7c545f3f0c3dd0a7ef"><td class="memItemLeft" align="right" valign="top">json_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__jose__jwk.html#ga9977a603c39b1b7c545f3f0c3dd0a7ef">jose_jwk_exc</a> (jose_cfg_t *cfg, const json_t *prv, const json_t *pub)</td></tr>
  86. <tr class="memdesc:ga9977a603c39b1b7c545f3f0c3dd0a7ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Perform a key exchange. <a href="#ga9977a603c39b1b7c545f3f0c3dd0a7ef">More...</a><br /></td></tr>
  87. <tr class="separator:ga9977a603c39b1b7c545f3f0c3dd0a7ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. </table>
  89. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  90. <p>JSON Web Keys (RFC 7517) </p>
  91. <p>A JSON Web Key (JWS) is a standard data format for expresing cryptographic keys in JSON.</p>
  92. <dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7517">https://tools.ietf.org/html/rfc7517</a> </dd>
  93. <dd>
  94. <a href="https://tools.ietf.org/html/rfc7638">https://tools.ietf.org/html/rfc7638</a> </dd></dl>
  95. <h2 class="groupheader">Function Documentation</h2>
  96. <a id="gac4daef7aeb077caaa459f07af353e9a8"></a>
  97. <h2 class="memtitle"><span class="permalink"><a href="#gac4daef7aeb077caaa459f07af353e9a8">&#9670;&nbsp;</a></span>jose_jwk_gen()</h2>
  98. <div class="memitem">
  99. <div class="memproto">
  100. <table class="memname">
  101. <tr>
  102. <td class="memname">bool jose_jwk_gen </td>
  103. <td>(</td>
  104. <td class="paramtype">jose_cfg_t *&#160;</td>
  105. <td class="paramname"><em>cfg</em>, </td>
  106. </tr>
  107. <tr>
  108. <td class="paramkey"></td>
  109. <td></td>
  110. <td class="paramtype">json_t *&#160;</td>
  111. <td class="paramname"><em>jwk</em>&#160;</td>
  112. </tr>
  113. <tr>
  114. <td></td>
  115. <td>)</td>
  116. <td></td><td></td>
  117. </tr>
  118. </table>
  119. </div><div class="memdoc">
  120. <p>Generates a new JWK. </p>
  121. <p>The JWK is generated using hints from the input in exactly the same format as you would find in the output. For example, the most common way to generate a key is to specify the algorithm you'd like to use the key with. For example (error handling omitted): </p><pre class="fragment">json_t *gen(void) {
  122. json_auto_t *jwk = json_pack("{s:s}", "alg", "ES256");
  123. jose_jwk_gen(NULL, jwk);
  124. return json_incref(jwk);
  125. }
  126. </pre><p>This method is preferred because other metadata can be inferred from the algorithm name, such as the key usage. Additionally, the algorithm metadata can be used to automatically generate correct headers when creating signatures (JWS) or encryptions (JWE). Thus, you should always default to creating keys by their algorithm usage.</p>
  127. <p>However, should your requirements differ, you can also generate a key using raw parameters (again, error handling omitted): </p><pre class="fragment">json_t *gen(void) {
  128. json_auto_t *jwk = json_pack("{s:s,s:s}", "kty", "EC", "crv", "P-256");
  129. jose_jwk_gen(NULL, jwk);
  130. return json_incref(jwk);
  131. }
  132. json_t *gen(void) {
  133. json_auto_t *jwk = json_pack("{s:s,s:i}", "kty", "RSA", "bits", 2048);
  134. jose_jwk_gen(NULL, jwk);
  135. return json_incref(jwk);
  136. }
  137. json_t *gen(void) {
  138. json_auto_t *jwk = json_pack("{s:s,s:i}", "kty", "oct", "bytes", 32);
  139. jose_jwk_gen(NULL, jwk);
  140. return json_incref(jwk);
  141. }
  142. </pre><p>In this case, "bits" and "bytes" will be removed from the final output.</p>
  143. <dl class="section see"><dt>See also</dt><dd><a href="https://www.iana.org/assignments/jose/jose.xhtml#web-signature-encryption-algorithms">https://www.iana.org/assignments/jose/jose.xhtml#web-signature-encryption-algorithms</a> </dd></dl>
  144. <dl class="params"><dt>Parameters</dt><dd>
  145. <table class="params">
  146. <tr><td class="paramname">cfg</td><td>The configuration context (optional). </td></tr>
  147. <tr><td class="paramname">jwk</td><td>The JWK to generate. </td></tr>
  148. </table>
  149. </dd>
  150. </dl>
  151. <dl class="section return"><dt>Returns</dt><dd>On success, true. Otherwise, false. </dd></dl>
  152. </div>
  153. </div>
  154. <a id="ga3ebb220fa6f93ad00c6589400c1a441c"></a>
  155. <h2 class="memtitle"><span class="permalink"><a href="#ga3ebb220fa6f93ad00c6589400c1a441c">&#9670;&nbsp;</a></span>jose_jwk_pub()</h2>
  156. <div class="memitem">
  157. <div class="memproto">
  158. <table class="memname">
  159. <tr>
  160. <td class="memname">bool jose_jwk_pub </td>
  161. <td>(</td>
  162. <td class="paramtype">jose_cfg_t *&#160;</td>
  163. <td class="paramname"><em>cfg</em>, </td>
  164. </tr>
  165. <tr>
  166. <td class="paramkey"></td>
  167. <td></td>
  168. <td class="paramtype">json_t *&#160;</td>
  169. <td class="paramname"><em>jwk</em>&#160;</td>
  170. </tr>
  171. <tr>
  172. <td></td>
  173. <td>)</td>
  174. <td></td><td></td>
  175. </tr>
  176. </table>
  177. </div><div class="memdoc">
  178. <p>Removes all private key material from a JWK. </p>
  179. <p>In addition, this function will remove any key operations from the <code>key_ops</code> JWK property (if present) that apply only to the private key.</p>
  180. <p>This function should be used before exporting keys to third parties.</p>
  181. <dl class="params"><dt>Parameters</dt><dd>
  182. <table class="params">
  183. <tr><td class="paramname">cfg</td><td>The configuration context (optional). </td></tr>
  184. <tr><td class="paramname">jwk</td><td>The JWK to remove private keys from. </td></tr>
  185. </table>
  186. </dd>
  187. </dl>
  188. <dl class="section return"><dt>Returns</dt><dd>On success, true. Otherwise, false. </dd></dl>
  189. </div>
  190. </div>
  191. <a id="gaa2023d0376c2e5ca14c2177f80f8ecd5"></a>
  192. <h2 class="memtitle"><span class="permalink"><a href="#gaa2023d0376c2e5ca14c2177f80f8ecd5">&#9670;&nbsp;</a></span>jose_jwk_prm()</h2>
  193. <div class="memitem">
  194. <div class="memproto">
  195. <table class="memname">
  196. <tr>
  197. <td class="memname">bool jose_jwk_prm </td>
  198. <td>(</td>
  199. <td class="paramtype">jose_cfg_t *&#160;</td>
  200. <td class="paramname"><em>cfg</em>, </td>
  201. </tr>
  202. <tr>
  203. <td class="paramkey"></td>
  204. <td></td>
  205. <td class="paramtype">const json_t *&#160;</td>
  206. <td class="paramname"><em>jwk</em>, </td>
  207. </tr>
  208. <tr>
  209. <td class="paramkey"></td>
  210. <td></td>
  211. <td class="paramtype">bool&#160;</td>
  212. <td class="paramname"><em>req</em>, </td>
  213. </tr>
  214. <tr>
  215. <td class="paramkey"></td>
  216. <td></td>
  217. <td class="paramtype">const char *&#160;</td>
  218. <td class="paramname"><em>op</em>&#160;</td>
  219. </tr>
  220. <tr>
  221. <td></td>
  222. <td>)</td>
  223. <td></td><td></td>
  224. </tr>
  225. </table>
  226. </div><div class="memdoc">
  227. <p>Determines if an operation is permitted for a JWK. </p>
  228. <p>The operation to be confirmed (<code>op</code>) is always specified according to the syntax of the "key_ops" JWK property, even when the "use" property is defined on the JWK.</p>
  229. <p>This function has two modes of operation. If <code>req</code> is false, then JWKs which do not have any key use metadata will be approved for this operation. However, if <code>req</code> is true then this metadata will be required for approval.</p>
  230. <dl class="params"><dt>Parameters</dt><dd>
  231. <table class="params">
  232. <tr><td class="paramname">cfg</td><td>The configuration context (optional). </td></tr>
  233. <tr><td class="paramname">jwk</td><td>The JWK from which to remove private keys. </td></tr>
  234. <tr><td class="paramname">req</td><td>Whether JWK key use metadata is required or not. </td></tr>
  235. <tr><td class="paramname">op</td><td>The opperation to seek approval for. </td></tr>
  236. </table>
  237. </dd>
  238. </dl>
  239. <dl class="section return"><dt>Returns</dt><dd>When the JWK is approved, true. Otherwise, false. </dd></dl>
  240. </div>
  241. </div>
  242. <a id="ga4f5d2e9dc5f9e24646808b502b87b764"></a>
  243. <h2 class="memtitle"><span class="permalink"><a href="#ga4f5d2e9dc5f9e24646808b502b87b764">&#9670;&nbsp;</a></span>jose_jwk_thp()</h2>
  244. <div class="memitem">
  245. <div class="memproto">
  246. <table class="memname">
  247. <tr>
  248. <td class="memname">json_t* jose_jwk_thp </td>
  249. <td>(</td>
  250. <td class="paramtype">jose_cfg_t *&#160;</td>
  251. <td class="paramname"><em>cfg</em>, </td>
  252. </tr>
  253. <tr>
  254. <td class="paramkey"></td>
  255. <td></td>
  256. <td class="paramtype">const json_t *&#160;</td>
  257. <td class="paramname"><em>jwk</em>, </td>
  258. </tr>
  259. <tr>
  260. <td class="paramkey"></td>
  261. <td></td>
  262. <td class="paramtype">const char *&#160;</td>
  263. <td class="paramname"><em>alg</em>&#160;</td>
  264. </tr>
  265. <tr>
  266. <td></td>
  267. <td>)</td>
  268. <td></td><td></td>
  269. </tr>
  270. </table>
  271. </div><div class="memdoc">
  272. <p>Calculates the thumbprint of a JWK as a URL-safe Base64 encoded JSON string. </p>
  273. <p>This function is a thin wrapper around <a class="el" href="group__jose__jwk.html#ga03f820f8de4e63ffe2feb3490236040e" title="Calculates the thumbprint of a JWK. ">jose_jwk_thp_buf()</a>.</p>
  274. <dl class="section see"><dt>See also</dt><dd><a class="el" href="group__jose__jwk.html#ga03f820f8de4e63ffe2feb3490236040e" title="Calculates the thumbprint of a JWK. ">jose_jwk_thp_buf()</a> </dd></dl>
  275. <dl class="params"><dt>Parameters</dt><dd>
  276. <table class="params">
  277. <tr><td class="paramname">cfg</td><td>The configuration context (optional). </td></tr>
  278. <tr><td class="paramname">jwk</td><td>The JWK to calculate the thumbprint for. </td></tr>
  279. <tr><td class="paramname">alg</td><td>The hash algorithm to use. </td></tr>
  280. </table>
  281. </dd>
  282. </dl>
  283. <dl class="section return"><dt>Returns</dt><dd>On success, a newly-allocated JSON string. Otherwise, NULL. </dd></dl>
  284. </div>
  285. </div>
  286. <a id="ga03f820f8de4e63ffe2feb3490236040e"></a>
  287. <h2 class="memtitle"><span class="permalink"><a href="#ga03f820f8de4e63ffe2feb3490236040e">&#9670;&nbsp;</a></span>jose_jwk_thp_buf()</h2>
  288. <div class="memitem">
  289. <div class="memproto">
  290. <table class="memname">
  291. <tr>
  292. <td class="memname">size_t jose_jwk_thp_buf </td>
  293. <td>(</td>
  294. <td class="paramtype">jose_cfg_t *&#160;</td>
  295. <td class="paramname"><em>cfg</em>, </td>
  296. </tr>
  297. <tr>
  298. <td class="paramkey"></td>
  299. <td></td>
  300. <td class="paramtype">const json_t *&#160;</td>
  301. <td class="paramname"><em>jwk</em>, </td>
  302. </tr>
  303. <tr>
  304. <td class="paramkey"></td>
  305. <td></td>
  306. <td class="paramtype">const char *&#160;</td>
  307. <td class="paramname"><em>alg</em>, </td>
  308. </tr>
  309. <tr>
  310. <td class="paramkey"></td>
  311. <td></td>
  312. <td class="paramtype">uint8_t *&#160;</td>
  313. <td class="paramname"><em>thp</em>, </td>
  314. </tr>
  315. <tr>
  316. <td class="paramkey"></td>
  317. <td></td>
  318. <td class="paramtype">size_t&#160;</td>
  319. <td class="paramname"><em>len</em>&#160;</td>
  320. </tr>
  321. <tr>
  322. <td></td>
  323. <td>)</td>
  324. <td></td><td></td>
  325. </tr>
  326. </table>
  327. </div><div class="memdoc">
  328. <p>Calculates the thumbprint of a JWK. </p>
  329. <p>This function calculates the thumbprint of a JWK according to the method defined by RFC 7638.</p>
  330. <p>If <code>thp</code> is NULL, this function returns the size of the buffer required for the thumbprint output.</p>
  331. <dl class="section see"><dt>See also</dt><dd><a href="https://tools.ietf.org/html/rfc7638">https://tools.ietf.org/html/rfc7638</a> </dd></dl>
  332. <dl class="params"><dt>Parameters</dt><dd>
  333. <table class="params">
  334. <tr><td class="paramname">cfg</td><td>The configuration context (optional). </td></tr>
  335. <tr><td class="paramname">jwk</td><td>The JWK to calculate the thumbprint for. </td></tr>
  336. <tr><td class="paramname">alg</td><td>The hash algorithm to use. </td></tr>
  337. <tr><td class="paramname">thp</td><td>The output hash buffer. </td></tr>
  338. <tr><td class="paramname">len</td><td>The size of the output hash buffer. </td></tr>
  339. </table>
  340. </dd>
  341. </dl>
  342. <dl class="section return"><dt>Returns</dt><dd>On success, the number of bytes written. Otherwise, SIZE_MAX. </dd></dl>
  343. </div>
  344. </div>
  345. <a id="ga9977a603c39b1b7c545f3f0c3dd0a7ef"></a>
  346. <h2 class="memtitle"><span class="permalink"><a href="#ga9977a603c39b1b7c545f3f0c3dd0a7ef">&#9670;&nbsp;</a></span>jose_jwk_exc()</h2>
  347. <div class="memitem">
  348. <div class="memproto">
  349. <table class="memname">
  350. <tr>
  351. <td class="memname">json_t* jose_jwk_exc </td>
  352. <td>(</td>
  353. <td class="paramtype">jose_cfg_t *&#160;</td>
  354. <td class="paramname"><em>cfg</em>, </td>
  355. </tr>
  356. <tr>
  357. <td class="paramkey"></td>
  358. <td></td>
  359. <td class="paramtype">const json_t *&#160;</td>
  360. <td class="paramname"><em>prv</em>, </td>
  361. </tr>
  362. <tr>
  363. <td class="paramkey"></td>
  364. <td></td>
  365. <td class="paramtype">const json_t *&#160;</td>
  366. <td class="paramname"><em>pub</em>&#160;</td>
  367. </tr>
  368. <tr>
  369. <td></td>
  370. <td>)</td>
  371. <td></td><td></td>
  372. </tr>
  373. </table>
  374. </div><div class="memdoc">
  375. <p>Perform a key exchange. </p>
  376. <p>The only currently implemented algorithm is ECDH.</p>
  377. <dl class="params"><dt>Parameters</dt><dd>
  378. <table class="params">
  379. <tr><td class="paramname">cfg</td><td>The configuration context (optional). </td></tr>
  380. <tr><td class="paramname">prv</td><td>The private JWK. </td></tr>
  381. <tr><td class="paramname">pub</td><td>The public JWK. </td></tr>
  382. </table>
  383. </dd>
  384. </dl>
  385. <dl class="section return"><dt>Returns</dt><dd>On success, the JWK result of the key exchange. Otherwise, NULL. </dd></dl>
  386. </div>
  387. </div>
  388. </div><!-- contents -->
  389. <!-- start footer part -->
  390. <hr class="footer"/><address class="footer"><small>
  391. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  392. <img class="footer" src="doxygen.png" alt="doxygen"/>
  393. </a> 1.8.13
  394. </small></address>
  395. </body>
  396. </html>