ameter. The length of the encapsulated data should be written to <i>*outlen</i> and the length of the generated secret should be written to <i>*secretlen</i>.</p>

<p>If <i>out</i> is NULL then the maximum length of the encapsulated data should be written to <i>*outlen</i>, and the maximum length of the generated secret should be written to <i>*secretlen</i>.</p>

<h2 id="Decapsulation-Functions">Decapsulation Functions</h2>

<p>OSSL_FUNC_kem_decapsulate_init() initialises a context for an asymmetric decaps